Skip to content

OS permission error should indicate which of the files caused the issue #137077

@eyaler

Description

@eyaler

Feature or enhancement

Proposal:

When running an os command with multiple files, e.g.:
os.replace('file1.txt', 'file2.txt')
If it fails due to OS access error, I would like to know which file is the cause. For the above I get:
PermissionError: [WinError 5] Access is denied: 'file1.txt' -> 'file2.txt'
But I don't know if the issue was file1.txt, file2.txt or both

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions