Creates an action to server-side copy a B2 file to a sync-relative destination path. Kept for compatibility with custom factories that accept a sync-relative string.
OptionalcopyCreates an action to server-side copy a B2 file using full destination path metadata.
Implementations can use dest.selectedVersion.fileName when a raw B2 prefix or normalized
sync path differs from the stored object key.
Creates an action to permanently delete a remote B2 file version.
Creates an action to download a B2 file to the local filesystem.
generateActions passes null when the B2 source has no scanned local
destination, a LocalSyncPath when the download replaces an existing
scanned destination file, and leaves the value undefined only for
callers that invoke a factory without destination scan context.
OptionalscannedDest: LocalSyncPath | nullCreates an action to hide a file in B2 (soft delete). Kept for compatibility with custom factories that accept a sync-relative string.
OptionalhideCreates an action to hide a B2 file using its full scanned path metadata.
Implementations can use selectedVersion.fileName when a raw B2 prefix or normalized sync path
differs from the stored object key.
Creates the right "remove this orphan from B2" action for the bucket's
configuration: a hide on a file-lock-enabled bucket (where direct
delete may be blocked or stack hide markers), a plain
delete-file-version on a vanilla bucket. Used by actionsForDestOnly
to avoid yielding both a hide AND a delete when only one of them is
the correct semantic for the destination bucket.
Creates an action to upload a local file to B2.
Optionaldest: B2SyncPath
Factory for creating concrete sync actions. Used by generateActions to decouple policy from execution.