Folders plugin always fails on special directories #2518

This commit is contained in:
nicolargo 2024-03-16 14:39:33 +01:00
parent ca97eeefe2
commit 0080c61eac

View File

@ -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