Interface FileStatWithMetadata

A file resource with meta information.

interface FileStatWithMetadata {
    children?: FileStatWithMetadata[];
    ctime: number;
    etag: string;
    isDirectory: boolean;
    isFile: boolean;
    isReadonly: boolean;
    isSymbolicLink: boolean;
    mtime: number;
    name: string;
    resource: URI;
    size: number;
}

Hierarchy (view full)

Properties

The children of the file stat or undefined if none.

ctime: number

The creation date represented as millis from unix epoch.

The value may or may not be resolved as it is optional.

etag: string

A unique identifier that represents the current state of the file or directory.

The value may or may not be resolved as it is optional.

isDirectory: boolean

The resource is a directory.

isFile: boolean

The resource is a file.

isReadonly: boolean

The resource is read only.

isSymbolicLink: boolean

The resource is a symbolic link.

mtime: number

The last modification date represented as millis from unix epoch.

The value may or may not be resolved as it is optional.

name: string

The name which is the last segment of the {{path}}.

resource: URI

The unified resource identifier of this file or folder.

size: number

The size of the file.

The value may or may not be resolved as it is optional.