fix: type special files as File instead of Folder in factory

This commit is contained in:
lohhiiccc 2026-07-02 18:27:30 +02:00
parent 017217de7c
commit 37b14de04d

View file

@ -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)
if path.is_dir():
return Folder(path)
return File(path)