manage loop on symbolic link

This commit is contained in:
Amber 2025-01-10 16:41:04 +01:00
parent 07b4d58e21
commit 9b1e5fd4d2

View File

@ -202,7 +202,12 @@ class NerdTree():
stat_item = path_object.lstat()
stat_item_mode = stat_item.st_mode
target = path_object.resolve() if is_symlink else ''
try:
target = path_object.resolve() if is_symlink else ''
except RuntimeError as e:
print(str(e))
target = ''
is_executable = stat_item_mode & _stat.S_IXUSR