ignore inaccessible filesystems
This commit is contained in:
parent
50a5d88b42
commit
850d43bf28
1 changed files with 4 additions and 1 deletions
|
@ -504,7 +504,10 @@ class StatsPart(Part):
|
|||
else:
|
||||
short_name = " /"
|
||||
|
||||
stat = os.statvfs(dir)
|
||||
try:
|
||||
stat = os.statvfs(dir)
|
||||
except PermissionError:
|
||||
continue
|
||||
|
||||
stor_total = stat.f_blocks * stat.f_bsize
|
||||
stor_free = stat.f_bavail * stat.f_bsize
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue