From 37b14de04d00e25f546992435a205183870970c9 Mon Sep 17 00:00:00 2001 From: lohhiiccc <96543753+lohhiiccc@users.noreply.github.com> Date: Thu, 2 Jul 2026 18:27:30 +0200 Subject: [PATCH] fix: type special files as File instead of Folder in factory --- src/items/factory.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)