File.dir-question-mark
You're seeing just the function
dir-question-mark
, go back to File module for more information.
Specs
Returns true
if the given path is a directory.
This function follows symbolic links, so if a symbolic link points to a
directory, true
is returned.
Options
The supported options are:
:raw
- a single atom to bypass the file server and only check for the file locally
Examples
File.dir?("./test")
#=> true
File.dir?("test")
#=> true
File.dir?("/usr/bin")
#=> true
File.dir?("~/Downloads")
#=> false
"~/Downloads" |> Path.expand() |> File.dir?()
#=> true