Closed filp closed 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
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.