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