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

    Class HideAction

    Hides a file in B2 by creating a hide marker (soft delete).

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Creates a new HideAction for the given relative path.

      Parameters

      • relativePath: string

        Path relative to the sync root.

      • doHide: (relativePath: string) => Promise<void>

        Callback that creates the hide marker.

      Returns HideAction

    Properties

    relativePath: string

    Path relative to the sync root.

    size: 0

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

    type: "hide" = ...

    The kind of action.

    Methods

    • Hides the file (unless dryRun) and returns a 'hide' event.

      Parameters

      • dryRun: boolean

        Whether to simulate the action without making changes.

      Returns Promise<SyncEvent>

      An async generator yielding sync progress events.