import { type FileInfo } from "https://deno.land/x/deno@v0.28.0/cli/js/file_info.ts";
A FileInfo describes a file and is returned by stat
, lstat
,
statSync
, lstatSync
.
Properties
The last modification time of the file. This corresponds to the mtime
field from stat
on Unix and ftLastWriteTime
on Windows. This may not
be available on all platforms.
The last access time of the file. This corresponds to the atime
field from stat
on Unix and ftLastAccessTime
on Windows. This may not
be available on all platforms.
The last access time of the file. This corresponds to the birthtime
field from stat
on Unix and ftCreationTime
on Windows. This may not
be available on all platforms.
The underlying raw st_mode bits that contain the standard Unix permissions for this file/directory. TODO Match behavior with Go on windows for mode.
Methods
Returns whether this is info for a regular file. This result is mutually
exclusive to FileInfo.isDirectory
and FileInfo.isSymlink
.
Returns whether this is info for a regular directory. This result is
mutually exclusive to FileInfo.isFile
and FileInfo.isSymlink
.