diff --git a/src/tree.py b/src/tree.py index d449022..c116c7c 100644 --- a/src/tree.py +++ b/src/tree.py @@ -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'