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: Yields:
Path: A entry within the location. Path: A entry within the location.
""" """
yield Path("Foo") for entry in location.iterdir():
yield Path("Bar") if worker.is_cancelled:
yield Path("Baz") break
yield Path("Wibble") yield entry
# for entry in location.iterdir(): self._tlog(f"Loaded entry {entry} from {location}")
# 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: def _load_directory(self, node: TreeNode[DirEntry], worker: Worker) -> None:
"""Load the directory contents for a given node. """Load the directory contents for a given node.