foo-webview-sdk
    Preparing search index...

    Interface FileGetInfoSuccess

    Successful response from file.getInfo.

    interface FileGetInfoSuccess {
        exists: boolean;
        extension?: string;
        isDirectory?: boolean;
        isFile?: boolean;
        modified?: number;
        name?: string;
        parent?: string;
        size?: number;
        success: true;
    }
    Index
    exists: boolean

    Whether the path exists; when false, no other field is present.

    extension?: string

    Extension with its leading dot, such as .flac; empty when there is none.

    isDirectory?: boolean

    Whether the path is a directory.

    isFile?: boolean

    Whether the path is a regular file.

    modified?: number

    Last write time as a JavaScript timestamp in milliseconds, truncated to whole seconds.

    name?: string

    File name with its extension.

    parent?: string

    Parent directory of the path after %variable% expansion. The path is not normalized, so a doubled separator left by the expansion stays.

    size?: number

    Size in bytes; 0 for a directory.

    success: true

    Always true here; a failed call resolves with ApiFailure instead.