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

x/ayonli_jsext/fs.ts>FileInfo

A JavaScript extension package for building strong and modern applications.
Latest
interface FileInfo
Re-export
import { type FileInfo } from "https://deno.land/x/ayonli_jsext@v0.9.72/fs.ts";

Information about a file or directory.

Properties

name: string
kind: "file" | "directory" | "symlink"
size: number

The size of the file in bytes. This value may be 0 if this is a directory or the size cannot be determined.

type: string

The MIME type of the file. If the MIME type cannot be determined, this value will be an empty string.

mtime: Date | null

The last modified time of the file. This value may be null on unsupported platforms.

atime: Date | null

The last accessed time of the file. This value may be null on unsupported platforms.

birthtime: Date | null

The creation time of the file. This value may be null on unsupported platforms.

mode: number

The permission mode of the file. This value may be 0 on unsupported platforms.

uid: number

User ID of the owner of the file. This value may be 0 on unsupported platforms.

gid: number

Group ID of the owner of the file. This value may be 0 on unsupported platforms.

isBlockDevice: boolean

Whether the file is a block device.

isCharDevice: boolean

Whether the file is a character device.

isFIFO: boolean

Whether the file is a FIFO (named pipe).

isSocket: boolean

Whether the file is a UNIX socket.