manage loop on symbolic link
This commit is contained in:
parent
07b4d58e21
commit
9b1e5fd4d2
@ -202,7 +202,12 @@ class NerdTree():
|
|||||||
stat_item = path_object.lstat()
|
stat_item = path_object.lstat()
|
||||||
stat_item_mode = stat_item.st_mode
|
stat_item_mode = stat_item.st_mode
|
||||||
|
|
||||||
|
try:
|
||||||
target = path_object.resolve() if is_symlink else ''
|
target = path_object.resolve() if is_symlink else ''
|
||||||
|
except RuntimeError as e:
|
||||||
|
print(str(e))
|
||||||
|
target = ''
|
||||||
|
|
||||||
|
|
||||||
is_executable = stat_item_mode & _stat.S_IXUSR
|
is_executable = stat_item_mode & _stat.S_IXUSR
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user