Skip to content

TransferResumeOptions

Defined in: src/transfers/createProviderTransferExecutor.ts:89

Checkpoint/resume configuration consumed by createProviderTransferExecutor (directly or through runRoute / client defaults).

import {
createFileSystemTransferCheckpointStore,
createProviderTransferExecutor,
} from "@zero-transfer/sdk";
const executor = createProviderTransferExecutor({
resolveSession,
resume: {
store: createFileSystemTransferCheckpointStore({ directory: "./.zt-checkpoints" }),
},
});
PropertyTypeDescriptionDefined in
mode?TransferResumeModeResume behavior. Defaults to "auto".src/transfers/createProviderTransferExecutor.ts:93
persistIntervalBytes?numberMinimum bytes of new committed progress between byte-offset checkpoint persists. Defaults to 8 MiB. Part-aware providers persist per committed part instead and ignore this value.src/transfers/createProviderTransferExecutor.ts:99
scope?stringOptional namespace mixed into checkpoint keys. Checkpoints are keyed by source+destination provider/path; set a scope (for example the host or profile id) when identical provider/path pairs can refer to different servers.src/transfers/createProviderTransferExecutor.ts:106
storeTransferCheckpointStoreCheckpoint persistence backend.src/transfers/createProviderTransferExecutor.ts:91