File.exists-question-mark
You're seeing just the function
exists-question-mark
, go back to File module for more information.
Specs
Returns true
if the given path exists.
It can be a regular file, directory, socket, symbolic link, named pipe, or device file.
Returns false
for symbolic links pointing to non-existing targets.
Options
The supported options are:
:raw
- a single atom to bypass the file server and only check for the file locally
Examples
File.exists?("test/")
#=> true
File.exists?("missing.txt")
#=> false
File.exists?("/dev/null")
#=> true