Revert experimental code

This commit is contained in:
Dave Pearson
2023-05-17 11:26:33 +01:00
parent 6876a041a4
commit 64d9c60267

View File

@@ -267,15 +267,11 @@ class DirectoryTree(Tree[DirEntry]):
Yields:
Path: A entry within the location.
"""
yield Path("Foo")
yield Path("Bar")
yield Path("Baz")
yield Path("Wibble")
# for entry in location.iterdir():
# if worker.is_cancelled:
# break
# yield entry
# self._tlog(f"Loaded entry {entry} from {location}")
for entry in location.iterdir():
if worker.is_cancelled:
break
yield entry
self._tlog(f"Loaded entry {entry} from {location}")
def _load_directory(self, node: TreeNode[DirEntry], worker: Worker) -> None:
"""Load the directory contents for a given node.