You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dataset download: add --resume flag to retry partial downloads #347
`nemar dataset download ` currently refuses to proceed if the output path already exists:
```
Error: Output path already exists: /Volumes/S1/Datasets/nm000132
Remove or rename the existing directory and try again.
```
(see `src/commands/dataset.ts:1704-1708`)
This makes partial downloads unrecoverable — the user must `rm -rf` and re-clone, discarding any data already pulled. A `--resume` flag should reuse the existing clone and only pull missing files (git-annex already supports this natively).
Proposed behavior
When `--resume` is passed:
If `` exists, verify it is a git-annex repo and `getDatasetIdFromRemote` returns the requested ``. If either fails, error out clearly.
Skip the `git clone` step.
Re-fetch S3 download credentials (reusing `requestDownloadCredentials`) and re-enable the S3 remote (`enableS3Remote` is already idempotent).
Activity
Add --resume, --update, and BIDS entity filters to dataset download (#…