We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
the behavior of os.listdir implementation in Windows systems leads to errors in the returned paths
os.listdir
The text was updated successfully, but these errors were encountered:
To give an example with python2:
with open(u’dir/name_\u03bb’, ‘w’): pass
with open(u’dir/name_\u03bb’, ‘w’):
pass
os.walk(‘dir’) will returns the filename name_? os.walk(u’dir’) will returns the filename name_λ
os.walk(‘dir’)
name_?
os.walk(u’dir’)
name_λ
One solution could be to force use of unicode on Windows (and probably on macOS) and keep bytes on Linux.
Sorry, something went wrong.
@Nikokrock is that fine with you?
No branches or pull requests
the behavior of
os.listdir
implementation in Windows systems leads to errors in the returned pathsThe text was updated successfully, but these errors were encountered: