mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Revert experimental code
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user