Deno.FileInfo

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.

interface FileInfo {
atime: Date | null;
birthtime: Date | null;
blksize: number | null;
blocks: number | null;
dev: number;
gid: number | null;
ino: number | null;
isBlockDevice: boolean | null;
isCharDevice: boolean | null;
isDirectory: boolean;
isFifo: boolean | null;
isFile: boolean;
isSocket: boolean | null;
isSymlink: boolean;
mode: number | null;
mtime: Date | null;
nlink: number | null;
rdev: number | null;
size: number;
uid: number | null;
}

§Properties

§
atime: Date | null
[src]

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.

§
birthtime: Date | null
[src]

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.

§
blksize: number | null
[src]

Blocksize for filesystem I/O.

Linux/Mac OS only.

§
blocks: number | null
[src]

Number of blocks allocated to the file, in 512-byte units.

Linux/Mac OS only.

§
dev: number
[src]

ID of the device containing the file.

§
gid: number | null
[src]

Group ID of the owner of this file.

Linux/Mac OS only.

§
ino: number | null
[src]

Inode number.

Linux/Mac OS only.

§
isBlockDevice: boolean | null
[src]

True if this is info for a block device.

Linux/Mac OS only.

§
isCharDevice: boolean | null
[src]

True if this is info for a char device.

Linux/Mac OS only.

§
isDirectory: boolean
[src]

True if this is info for a regular directory. Mutually exclusive to FileInfo.isFile and FileInfo.isSymlink.

§
isFifo: boolean | null
[src]

True if this is info for a fifo.

Linux/Mac OS only.

§
isFile: boolean
[src]

True if this is info for a regular file. Mutually exclusive to FileInfo.isDirectory and FileInfo.isSymlink.

§
isSocket: boolean | null
[src]

True if this is info for a socket.

Linux/Mac OS only.

§
mode: number | null
[src]

The underlying raw st_mode bits that contain the standard Unix permissions for this file/directory.

Linux/Mac OS only.

§
mtime: Date | null
[src]

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.

§
rdev: number | null
[src]

Device ID of this file.

Linux/Mac OS only.

§
size: number
[src]

The size of the file, in bytes.

§
uid: number | null
[src]

User ID of the owner of this file.

Linux/Mac OS only.