Skip to content

Exception raised when reading filesize on file with no access #2

Closed
@kek91

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

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions