Interface FileInfo

Just the part of Deno.FileInfo that is required to calculate an ETag, so partial or user generated file information can be passed.

interface FileInfo {
    mtime: null | Date;
    size: number;
}

Properties

Properties

mtime: null | Date

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.

size: number

The size of the file, in bytes.