@refinio/one.models
    Preparing search index...

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

    Implements

    Index

    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

      • storagePath: string

      Returns Promise<0>