import { type Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.ns.d.ts";
const { FileInfo } = Deno;
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
True if this is info for a regular file. Mutually exclusive to
FileInfo.isDirectory
and FileInfo.isSymlink
.
True if this is info for a regular directory. Mutually exclusive to
FileInfo.isFile
and FileInfo.isSymlink
.
True if this is info for a symlink. Mutually exclusive to
FileInfo.isFile
and FileInfo.isDirectory
.
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.
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.
The underlying raw st_mode
bits that contain the standard Unix
permissions for this file/directory.
Linux/Mac OS only.