Skip to main content
Latest
interface FileInfo
import { type FileInfo } from "https://deno.land/x/etag@0.2.0/mod.d.ts";

Partial implementation of the Deno.FileInfo interface. Describes a file, and is returned by stat, lstat, statSync, lstatSync.

Type Parameters

optional
Parsed = false

Properties

size: number

The size of the file, in bytes.

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.

birthtime: Timestamp<Parsed>

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.

ino: Maybe<number>

Inode number.

Linux/Mac OS only.