Skip to content

DownloadFileOptions

Defined in: src/client/operations.ts:96

Options for downloadFile.

PropertyTypeDescriptionInherited fromDefined in
bandwidthLimit?TransferBandwidthLimitOptional bandwidth limit forwarded to the engine.RunRouteOptions.bandwidthLimitsrc/mft/runRoute.ts:55
clientTransferClientTransfer client used to resolve both endpoint providers.-src/client/operations.ts:98
engine?TransferEngineOptional transfer engine override. A fresh engine is created when omitted.RunRouteOptions.enginesrc/mft/runRoute.ts:41
jobId?stringOptional explicit job id. Defaults to a deterministic route-derived id.RunRouteOptions.jobIdsrc/mft/runRoute.ts:43
localPathstringLocal destination path. Relative paths are resolved against process.cwd().-src/client/operations.ts:102
metadata?Record<string, unknown>Caller-defined metadata merged into the resulting transfer job.RunRouteOptions.metadatasrc/mft/runRoute.ts:59
now?() => DateOptional clock used to derive the default job id. Defaults to Date.now.RunRouteOptions.nowsrc/mft/runRoute.ts:45
onProgress?(event: TransferProgressEvent) => voidProgress observer forwarded to the engine.RunRouteOptions.onProgresssrc/mft/runRoute.ts:51
resume?TransferResumeOptionsCheckpoint/resume configuration forwarded to the executor. Falls back to client.defaults.resume.RunRouteOptions.resumesrc/mft/runRoute.ts:57
retry?TransferRetryPolicyRetry policy forwarded to the engine. Falls back to client.defaults.retry.RunRouteOptions.retrysrc/mft/runRoute.ts:49
routeId?stringStable route id assigned to the synthetic route. Defaults to "upload:...", "download:...", or "copy:...".FriendlyTransferOptions.routeIdsrc/client/operations.ts:30
routeName?stringOptional human-readable route name forwarded to telemetry.FriendlyTransferOptions.routeNamesrc/client/operations.ts:32
signal?AbortSignalAbort signal used to cancel the route execution.RunRouteOptions.signalsrc/mft/runRoute.ts:47
sourceRemoteFileEndpointRemote source endpoint.-src/client/operations.ts:100
timeout?TransferTimeoutPolicyTimeout policy forwarded to the engine. Falls back to client.defaults.timeout.RunRouteOptions.timeoutsrc/mft/runRoute.ts:53