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

Problems with long filenames on Windows #92

Open
vovkkk opened this issue Jul 15, 2015 · 0 comments
Open

Problems with long filenames on Windows #92

vovkkk opened this issue Jul 15, 2015 · 0 comments
Labels

Comments

@vovkkk
Copy link
Collaborator

vovkkk commented Jul 15, 2015

Python devs claim it is madness http://bugs.python.org/issue542314#msg55923
But actually they just lazy.

Let say I need create file 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
I can do it in Explorer on Win8.1 no problem — the file is editable, renamable, and removable.
In Python, however, it is not possible (it throws all kinds of errors, Error 3, Windows Error, hard to debug).
Lazy Python devs advise to prefix path with \\\\?\\ (which is make sense, ofc.), and it works… but the file cannot be removed or renamed… trying to open context menu for this file in Explorer crashes Explorer (no kidding).

Both py2 and py3.

I guess we will need to use winapi, or maybe set some kind of attribute or something (I’ll investigate it after #91 )

@vovkkk vovkkk added the bug label Jul 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant