aziz / SublimeFileBrowser

Ditch sidebar and browse your files in a normal tab with keyboard, like a pro!
MIT License
394 stars 46 forks source link

Problems with long filenames on Windows #92

Open vovkkk opened 9 years ago

vovkkk commented 9 years ago

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 )