Skip to main content
Module

x/uuid/lib/lib.deno_runtime.d.ts>Deno.FileInfo

Deprecated! UUID is part of the deno standard library
Latest
interface Deno.FileInfo
import { type Deno } from "https://deno.land/x/uuid@v0.1.2/lib/lib.deno_runtime.d.ts";
const { FileInfo } = Deno;

A FileInfo describes a file and is returned by stat, lstat, statSync, lstatSync.

Properties

len: number

The size of the file, in bytes.

modified: number | null

The last modification time of the file. This corresponds to the mtime field from stat on Unix and ftLastWriteTime on Windows. This may not be available on all platforms.

accessed: number | null

The last access time of the file. This corresponds to the atime field from stat on Unix and ftLastAccessTime on Windows. This may not be available on all platforms.

created: number | null

The last access time of the file. This corresponds to the birthtime field from stat on Unix and ftCreationTime on Windows. This may not be available on all platforms.

mode: number | null

The underlying raw st_mode bits that contain the standard Unix permissions for this file/directory. TODO Match behavior with Go on windows for mode.

name: string | null

Returns the file or directory name.

path: string | null

Returns the file or directory path.

Methods

isFile(): boolean

Returns whether this is info for a regular file. This result is mutually exclusive to FileInfo.isDirectory and FileInfo.isSymlink.

isDirectory(): boolean

Returns whether this is info for a regular directory. This result is mutually exclusive to FileInfo.isFile and FileInfo.isSymlink.