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

    Interface SyncAction

    A single executable sync action produced by the policy engine.

    interface SyncAction {
        relativePath: string;
        size: number;
        type: SyncActionType;
        execute(dryRun: boolean): Promise<SyncEvent>;
    }

    Implemented by

    Index

    Properties

    Methods

    Properties

    relativePath: string

    Relative path of the file this action targets.

    size: number

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

    The kind of action.

    Methods

    • Executes the action (or no-ops if dryRun is true) and returns a corresponding event.

      Parameters

      • dryRun: boolean

        When true, skip the actual I/O but still return the event.

      Returns Promise<SyncEvent>