A FileInfo describes a file and is returned by stat
, lstat
, statSync
, lstatSync
.
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 creation time of the file. This corresponds to the birthtime
field from stat
on Mac/BSD and ftCreationTime
on Windows. This may not be available on all platforms.
Blocksize for filesystem I/O.
Linux/Mac OS only.
Number of blocks allocated to the file, in 512-byte units.
Linux/Mac OS only.
ID of the device containing the file.
Linux/Mac OS only.
Group ID of the owner of this file.
Linux/Mac OS only.
Inode number.
Linux/Mac OS only.
True if this is info for a regular directory. Mutually exclusive to FileInfo.isFile
and FileInfo.isSymlink
.
True if this is info for a regular file. Mutually exclusive to FileInfo.isDirectory
and FileInfo.isSymlink
.
True if this is info for a symlink. Mutually exclusive to FileInfo.isFile
and FileInfo.isDirectory
.
UNSTABLE: Match behavior with Go on Windows for mode
.
The underlying raw st_mode
bits that contain the standard Unix permissions for this file/directory.
The last modification time of the file. This corresponds to the mtime
field from stat
on Linux/Mac OS and ftLastWriteTime
on Windows. This may not be available on all platforms.
Number of hard links pointing to this file.
Linux/Mac OS only.
Device ID of this file.
Linux/Mac OS only.
The size of the file, in bytes.
User ID of the owner of this file.
Linux/Mac OS only.
© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.FileInfo