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
Open
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Raise error on permission denied (#57573)

  • Loading branch information...
Jakski committed Jun 8, 2019
commit d8a35cfc0823ee4972b67b62b9c49533de8b4d00
@@ -296,7 +296,7 @@ def get_state(path):

b_path = to_bytes(path, errors='surrogate_or_strict')
try:
if os.path.lexists(b_path):
if os.lstat(b_path):
if os.path.islink(b_path):
return 'link'
elif os.path.isdir(b_path):
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.