tar
    Preparing search index...

    Type Alias CreateFS

    The subset of node:fs/promises that the creation uses. It also fits TarFS, which reads an @archive operand.

    The creation calls lstat (stat with follow) a second time, with the option bigint: true, only when the dev or ino number is not a safe integer, and only for a file with more than one link, or with follow for a directory. A function can ignore the option and return numbers.

    type CreateFS = {
        lstat(path: string): Promise<CreateStats>;
        lstat(path: string, options: BigIntOption): Promise<FileId>;
        open(path: string, flags: string, mode?: number): Promise<CreateFileHandle>;
        readdir(path: string): Promise<string[]>;
        readlink(path: string): Promise<string>;
        stat(path: string): Promise<CreateStats>;
        stat(path: string, options: BigIntOption): Promise<FileId>;
    }
    Index

    Methods

    • Parameters

      • path: string

      Returns Promise<string[]>

    • Parameters

      • path: string

      Returns Promise<string>