Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/http/mod.ts>FileInfo

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface FileInfo
import { type FileInfo } from "https://deno.land/std@0.218.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.