Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file: Raise error on permission denied #57574

Open
wants to merge 1 commit into
base: devel
from

Conversation

Projects
None yet
3 participants
@Jakski
Copy link

commented Jun 8, 2019

SUMMARY

Fixes #57573.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

file module

ADDITIONAL INFORMATION

os.path.lexists won't report error when process has no permission to access path. See: https://github.com/python/cpython/blob/e119b3d136bd94d880bce4b382096f6de3f38062/Lib/posixpath.py#L174. It means that inaccessible paths will be treated as absent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.