Skip to content

make find_dandi_files raise FileNotFoundError exception if path is invalid #1094

@yarikoptic

Description

@yarikoptic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions