pure
    Preparing search index...

    Interface FsFileStandalone

    Interface for operating on a file opened standalone (without opening a file system

    interface FsFileStandalone {
        name: string;
        getBytes(): Promise<FsResult<Uint8Array<ArrayBufferLike>>>;
        getLastModified(): Promise<FsResult<number>>;
        getSize(): Promise<FsResult<number>>;
        getText(): Promise<FsResult<string>>;
        isWritable(): Promise<boolean>;
        write(content: string | Uint8Array<ArrayBufferLike>): Promise<FsVoid>;
    }
    Index

    Properties

    name: string

    The name of the file

    Methods

    • If the file is writable. May prompt user for permission

      Returns Promise<boolean>

    • Write content to the file if the implementation supports writing, and permission is granted

      Parameters

      • content: string | Uint8Array<ArrayBufferLike>

      Returns Promise<FsVoid>