@backblaze-labs/b2-sdk - v0.1.0
    Preparing search index...

    Class DeleteLocalAction

    Deletes a file from the local filesystem.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Creates a new DeleteLocalAction for the given relative path.

      Parameters

      • relativePath: string

        Path relative to the sync root.

      • absolutePath: string

        Absolute local filesystem path.

      • doDelete: (absolutePath: string) => Promise<void>

        Callback that performs the deletion.

      Returns DeleteLocalAction

    Properties

    absolutePath: string

    Absolute local filesystem path.

    relativePath: string

    Path relative to the sync root.

    size: 0

    Size in bytes of the file, or 0 for metadata-only actions.

    type: "delete-local" = ...

    The kind of action.

    Methods

    • Deletes the local file (unless dryRun) and returns a 'delete-local' event.

      Parameters

      • dryRun: boolean

        Whether to simulate the action without making changes.

      Returns Promise<SyncEvent>

      An async generator yielding sync progress events.