From 468e39c9c3f7962e5078e9bdc4b6ad1f16fa4ee8 Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Tue, 26 Jul 2022 20:19:44 -0400 Subject: [PATCH] Do not index top-level files from pseudofile directories --- dandi/support/bids/validator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dandi/support/bids/validator.py b/dandi/support/bids/validator.py index f1981f7e6..8c1768d47 100644 --- a/dandi/support/bids/validator.py +++ b/dandi/support/bids/validator.py @@ -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