File.lstat
You're seeing just the function
lstat
, go back to File module for more information.
Specs
lstat(Path.t(), stat_options()) :: {:ok, File.Stat.t()} | {:error, posix()}
Returns information about the path
. If the file is a symlink, sets
the type
to :symlink
and returns a File.Stat
struct for the link. For any
other file, returns exactly the same values as stat/2
.
For more details, see :file.read_link_info/2
.
Options
The accepted options are:
:time
- configures how the file timestamps are returned
The values for :time
can be:
:universal
- returns a{date, time}
tuple in UTC (default):local
- returns a{date, time}
tuple using the machine time:posix
- returns the time as integer seconds since epoch
Note: Since file times are stored in POSIX time format on most operating systems,
it is faster to retrieve file information with the time: :posix
option.