Skip to content

Commit

Permalink
Do not index top-level files from pseudofile directories
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Jul 27, 2022
1 parent 3f43905 commit 468e39c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dandi/support/bids/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def _get_paths(
path_list.append(Path(root).as_posix() + "/")
# Do not index the contents of the directory.
dirs[:] = []
file_names[:] = []
# will break if BIDS ever puts meaningful data under `/.{dandi,datalad,git}*/`
if os.path.basename(root) in exclude_subdirs:
continue
Expand Down

0 comments on commit 468e39c

Please sign in to comment.