FileSystemTransferCheckpointStoreOptions
Defined in: src/transfers/TransferCheckpointStore.ts:256
Options accepted by createFileSystemTransferCheckpointStore.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
directory | string | Directory under which checkpoint JSON files are written. Created recursively if it does not exist. Each transfer identity occupies a single file named after a SHA-256 hash of the key, so the directory is safe to share across many concurrent transfers. | src/transfers/TransferCheckpointStore.ts:263 |
now? | () => number | Clock override for deterministic tests. Defaults to Date.now. | src/transfers/TransferCheckpointStore.ts:273 |
ttlMs? | number | Checkpoint time-to-live in milliseconds. Records older than this are deleted on load and treated as absent. Defaults to 7 days, matching the default lifecycle window for uncommitted S3 multipart uploads and Azure staged blocks - resuming after the remote side has expired its half of the state would fail anyway. | src/transfers/TransferCheckpointStore.ts:271 |