Commit e50be90d by Jörg Stucke

empty dir bugfix

parent de153ba7
......@@ -150,7 +150,7 @@ def test_safe_rglob_invalid_path():
def test_safe_rglob_empty_dir():
test_path = Path(TestFailSafeFileOperations.get_directory_of_current_file()).parent / 'tests' / 'data' / 'empty_folder'
assert test_path.exists()
test_path.mkdir(exist_ok=True)
result = safe_rglob(test_path)
assert len(list(result)) == 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment