slash-lang / slash

A new language for the web
http://slash-lang.org
MIT License
386 stars 22 forks source link

Implement File.exists #7

Closed filp closed 11 years ago

filp commented 11 years ago

There's currently no way to check if a file exists. The only way to do this is to attempt to read the file and catch the NotFound error.

File.exists?(path)
 #=> True | False