melizalab / neurobank

management system for experimental data
GNU General Public License v2.0
0 stars 1 forks source link

nbank fetch does not exit when file already exists #20

Closed jonahweissman closed 2 years ago

jonahweissman commented 2 years ago

the fetch functionality seems to correctly detect when the target already exists: https://github.com/melizalab/neurobank/blob/eb39a2b446d45c9440794bf3f4835582235ab819/nbank/script.py#L426-L432

But it doesn't exit the script. Instead, it just downloads the neurobank resource on top of the existing file, which is functionally the same behavior as the --force flag.