fix: type special files as File instead of Folder in factory
This commit is contained in:
parent
017217de7c
commit
37b14de04d
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue