Skip to content

Commit

Permalink
Folders plugin always fails on special directories #2518
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Mar 16, 2024
1 parent ca97eee commit 0080c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glances/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def folder_size(path, errno=0):
ret_size += f.stat().st_size
except OSError as e:
ret_err = e.errno
except OSError as e:
except (OSError, PermissionError) as e:
return 0, e.errno
else:
return ret_size, ret_err
Expand Down

0 comments on commit 0080c61

Please sign in to comment.