catch item link

This commit is contained in:
Amber 2024-02-28 15:25:14 +01:00
parent e7ac53fbe7
commit 8e51984b01
1 changed files with 4 additions and 2 deletions

View File

@ -24,10 +24,12 @@ class NerdTree():
## using lstat not produce error in case of symbolic link
path_object = Path(abs_path_item)
item_type = ''
if path_object.is_dir():
item_type = 'd'
# elif path_object.is_symlink():
# item_type = 'l'
elif path_object.is_symlink():
item_type = 'l'
elif path_object.is_file():
item_type = 'f'