diff --git a/src/items/factory.py b/src/items/factory.py index 55b3e17..8477c69 100644 --- a/src/items/factory.py +++ b/src/items/factory.py @@ -8,6 +8,6 @@ from pathlib import Path def make_item(path: Path) -> AItem: if path.is_symlink(): return Symlink(path) - if path.is_file(): - return File(path) - return Folder(path) + if path.is_dir(): + return Folder(path) + return File(path)