The FsFileStorageAdapter is used for local development when persistence is need when restarting the dev server. Note FsFileStorageAdapter lacks nested folder support. A flat hierarchy is used, requiring filename encoding/decoding.

IMPORT_PATH: "@daiso-tech/core/file-storage/fs-file-storage-adapter"

Implements

Constructors

Methods

  • The copyAndReplace methods copies the source file to the given destination. The destination file will always be replaces. Returns true if the source is found otherwise false is returned.

    Parameters

    • source: string
    • destination: string

    Returns Promise<boolean>

  • The moveAndReplace methods moves the source file to the given destination. The destination file will always be replaces. Returns true if the source is found otherwise false is returned.

    Parameters

    • source: string
    • destination: string

    Returns Promise<boolean>