Provides information about a file and is returned by
Deno.stat
, Deno.lstat
, Deno.statSync
,
and Deno.lstatSync
or from calling stat()
and statSync()
on an Deno.FsFile
instance.
Properties Jump to heading
Jump to headingisFile: boolean
True if this is info for a regular file. Mutually exclusive to
FileInfo.isDirectory
and FileInfo.isSymlink
.
Jump to headingisDirectory: boolean
True if this is info for a regular directory. Mutually exclusive to
FileInfo.isFile
and FileInfo.isSymlink
.
Jump to headingisSymlink: boolean
True if this is info for a symlink. Mutually exclusive to
FileInfo.isFile
and FileInfo.isDirectory
.
Jump to headingsize: number
The size of the file, in bytes.
Jump to headingmtime: Date | null
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.
Jump to headingatime: Date | null
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.
Jump to headingbirthtime: Date | null
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.
Jump to headingctime: Date | null
The last change time of the file. This corresponds to the ctime
field from stat
on Mac/BSD and ChangeTime
on Windows. This may
not be available on all platforms.
Jump to headingdev: number
ID of the device containing the file.
Jump to headingino: number | null
Inode number.
Linux/Mac OS only.
Jump to headingmode: number | null
The underlying raw st_mode
bits that contain the standard Unix
permissions for this file/directory.
Jump to headingnlink: number | null
Number of hard links pointing to this file.
Linux/Mac OS only.
Jump to headinguid: number | null
User ID of the owner of this file.
Linux/Mac OS only.
Jump to headinggid: number | null
Group ID of the owner of this file.
Linux/Mac OS only.
Jump to headingrdev: number | null
Device ID of this file.
Linux/Mac OS only.
Jump to headingblksize: number | null
Blocksize for filesystem I/O.
Linux/Mac OS only.
Jump to headingblocks: number | null
Number of blocks allocated to the file, in 512-byte units.
Linux/Mac OS only.
Jump to headingisBlockDevice: boolean | null
True if this is info for a block device.
Linux/Mac OS only.
Jump to headingisCharDevice: boolean | null
True if this is info for a char device.
Linux/Mac OS only.
Jump to headingisFifo: boolean | null
True if this is info for a fifo.
Linux/Mac OS only.
Jump to headingisSocket: boolean | null
True if this is info for a socket.
Linux/Mac OS only.