catch item link
This commit is contained in:
parent
e7ac53fbe7
commit
8e51984b01
|
@ -24,10 +24,12 @@ class NerdTree():
|
||||||
## using lstat not produce error in case of symbolic link
|
## using lstat not produce error in case of symbolic link
|
||||||
path_object = Path(abs_path_item)
|
path_object = Path(abs_path_item)
|
||||||
|
|
||||||
|
item_type = ''
|
||||||
|
|
||||||
if path_object.is_dir():
|
if path_object.is_dir():
|
||||||
item_type = 'd'
|
item_type = 'd'
|
||||||
# elif path_object.is_symlink():
|
elif path_object.is_symlink():
|
||||||
# item_type = 'l'
|
item_type = 'l'
|
||||||
elif path_object.is_file():
|
elif path_object.is_file():
|
||||||
item_type = 'f'
|
item_type = 'f'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue