Skip to content

Conversation

defnull
Copy link
Contributor

@defnull defnull commented Oct 30, 2024

Path.is_file() throws PermissionError if the current user is not allowed to list one of the parent directories. An import would also fail, so treat this as if the file wasn't there.

fixes #181

Path.is_file() throws PermissionError if the current user is not allowed to list one of the parent directories. An import would also fail, so treat this as if the file wasn't there.

fixes Kludex#181
@defnull
Copy link
Contributor Author

defnull commented Oct 30, 2024

Tested with PYTHONPATH=.:/root python3 -c 'import multipart and it works.

@Kludex
Copy link
Owner

Kludex commented Oct 31, 2024

Thanks @defnull 👍

@Kludex Kludex merged commit ca52662 into Kludex:master Oct 31, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rootless docker images get permission denied
2 participants