Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/http/mod.ts>FileInfo

The Deno Standard Library
Go to Latest
interface FileInfo
import { type FileInfo } from "https://deno.land/std@0.222.1/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.