Creates a new CopyAction for the given relative path.
Path relative to the sync root.
File size in bytes.
Callback that performs the server-side copy.
ReadonlyrelativePath relative to the sync root.
ReadonlysizeFile size in bytes.
ReadonlytypeThe kind of action.
Copies the file (unless dryRun) and returns a 'copy-done' event.
Whether to simulate the action without making changes.
Optionalsignal: AbortSignalOptional abort signal for canceling the copy.
A promise resolving to the sync event produced by the action.
Server-side copies a B2 file to a new key within the same or different bucket.