-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Only traverse necessary directories (#81)
I have been trying to download https://openneuro.org/datasets/ds004024/, and traversing the directory structure takes over a minute locally (!) for example for: ``` openneuro-py download --dataset=ds004024 --target_dir=$PWD --include="sub-CON001/*.eeg" --include="sub-CON001/*.tsv" ``` or ``` openneuro-py download --dataset=ds004024 --target_dir=$PWD --include="sub-CON001" ``` With these changes, either of these requires less than 10 seconds to traverse, because they are smart enough to ignore all other `sub-*` directories. I'm not 100% sure the logic here is correct, but I do think we want something like this eventually to make `openneuro-py` more usable.
- Loading branch information
Showing
3 changed files
with
81 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters