Creates a new DownloadAction for the given relative path.
Path relative to the sync root.
File size in bytes.
Callback that performs the actual download.
ReadonlyrelativePath relative to the sync root.
ReadonlysizeFile size in bytes.
ReadonlytypeThe kind of action.
Downloads the file (unless dryRun) and returns a 'download-done' event.
Whether to simulate the action without making changes.
Optionalsignal: AbortSignalOptional abort signal for canceling the download.
A promise resolving to the sync event produced by the action.
Downloads a B2 file to the local filesystem.