This represents a special File System that maps the given path to the specific file system implementation

Implements

Constructors

Methods

  • Overwrites a file if the file already exist in the folder, otherwise, adds the file.

    Parameters

    • directoryPath: string
    • fileHash: SHA256Hash<BLOB>
    • fileName: string
    • fileMode: number = 0o0100666

    Returns Promise<void>

  • Attaches a filesystem to a directory. It will return 0 for success or reject the promise.

    Parameters

    Returns Promise<0>

  • Attaches a filesystem to a directory. It will return 0 for success or reject the promise.

    Parameters

    • storagePath: string

    Returns Promise<0>