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:
|
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user