mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-30 21:49:37 +03:00
Folders plugin always fails on special directories #2518
This commit is contained in:
parent
ca97eeefe2
commit
0080c61eac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user