dandi / dandi/dandi-cli

make find_dandi_files raise FileNotFoundError exception if path is invalid

Open
#1,094 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
28
Forks
37
Avg merge
1d 17h
Merged PRs (30d)
9

Description

ATM it just returns empty list and that is it:

```
(git)lena:~/proj/dandi/dandi-cli-master[master]git
$> python3 -c 'import dandi.files as df; from pprint import pprint; pprint(list((hex(id(x)), x) for x in df.find_dandi_files("/home/yoh/datalad/openneuro/ds00001")))'
[]

$> ls -l /home/yoh/datalad/openneuro/ds00001
ls: cannot access '/home/yoh/datalad/openneuro/ds00001': No such file or directory
```

initially observed while testing #1076 and there behavior is identical. Needs analysis on what this would cause in terms of UI/UX.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.