Skip to main content
Module

std/http/mod.ts>FileInfo

Deno standard library
Go to Latest
interface FileInfo
import { type FileInfo } from "https://deno.land/std@0.221.0/http/mod.ts";

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

Properties

mtime: 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.

size: number

The size of the file, in bytes.