Class IndexFSAbstract

Hierarchy (view full)

  • {
        createFile(path: string, flag: string, mode: number): Promise<File<FileSystem>>;
        createFileSync(path: string, flag: string, mode: number): File<FileSystem>;
        link(srcpath: string, dstpath: string): Promise<void>;
        linkSync(srcpath: string, dstpath: string): void;
        metadata(): FileSystemMetadata;
        mkdir(path: string, mode: number): Promise<void>;
        mkdirSync(path: string, mode: number): void;
        rename(oldPath: string, newPath: string): Promise<void>;
        renameSync(oldPath: string, newPath: string): void;
        rmdir(path: string): Promise<void>;
        rmdirSync(path: string): void;
        sync(path: string, data: Uint8Array, stats: Readonly<Stats>): Promise<void>;
        syncSync(path: string, data: Uint8Array, stats: Readonly<Stats>): void;
        unlink(path: string): Promise<void>;
        unlinkSync(path: string): void;
    } & FileSystem<this>

Constructors

Properties

_disableSync?: boolean

Whether the sync cache should be disabled. Only affects async things.

_isInitialized: boolean = false
index: Index = ...

Methods

  • Test whether or not path exists.

    Parameters

    • path: string

    Returns Promise<boolean>

  • Test whether or not path exists.

    Parameters

    • path: string

    Returns boolean

  • Parameters

    • srcpath: string
    • dstpath: string

    Returns Promise<void>

  • Parameters

    • srcpath: string
    • dstpath: string

    Returns void

  • Parameters

    • path: string
    • mode: number

    Returns Promise<void>

  • Parameters

    • path: string
    • mode: number

    Returns void

  • Parameters

    • path: string

    Returns Promise<string[]>

  • Parameters

    • oldPath: string
    • newPath: string

    Returns Promise<void>

  • Parameters

    • oldPath: string
    • newPath: string

    Returns void

  • Parameters

    • path: string

    Returns Promise<void>

  • Parameters

    • path: string

    Returns void

  • Parameters

    • path: string
    • data: Uint8Array
    • stats: Readonly<Stats>

    Returns Promise<void>

  • Parameters

    • path: string
    • data: Uint8Array
    • stats: Readonly<Stats>

    Returns void

  • Parameters

    • path: string

    Returns Promise<void>

  • Parameters

    • path: string

    Returns void