Exception raised when reading filesize on file with no access #2
Closed
Description
DirectoryPaneListener 'StatusBarExtended' raised error.
Traceback (most recent call last):
File "\StatusBarExtended\statusbarextended_init_.py", line 79, in on_path_changed
ShowStatusBarExtended.refresh(self)
File "\StatusBarExtended\statusbarextended_init_.py", line 42, in refresh
dir_filesize += stat(f).st_size
PermissionError: [WinError 5] Access is denied: 'F:\/hiberfil.sys'
Possible solution: Implement a try/catch block to ignore the file if access is denied