We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a34b83 commit 5e163a5Copy full SHA for 5e163a5
src/bids/layout/tests/test_layout.py
@@ -1195,3 +1195,13 @@ def test_ignore_dotfiles(temporary_dataset):
1195
assert str(arbitrary_dotfile) not in layout.files
1196
assert str(ds_store) not in layout.files
1197
assert str(osx_companion_file) not in layout.files
1198
+
1199
1200
+def test_empty_directory(temporary_dataset):
1201
+ anat = temporary_dataset / 'sub-01' / 'anat'
1202
+ shutil.rmtree(anat)
1203
+ anat.mkdir()
1204
1205
+ layout = BIDSLayout(temporary_dataset)
1206
1207
+ assert layout.get(subject='01', datatype='anat') == []
0 commit comments