Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm curious how one gets long names from a windows pc given the path length limits on windows https://stackoverflow.com/a/1880453

Maybe I'm not understanding that limit correctly but it looks like the whole path cannot be longer than 260 characters. I've hit that limit when transferring files from linux to windows.

As you mention, the linux limit is in bytes, so the issue could appear in some character sets, but it still looks like the path limits are a lot more drastic under windows.



unicode version of windows api lets you do longer paths -upto 30k(it is transparently handled in windows explorer)

example of a function that uses it- https://docs.microsoft.com/en-us/windows/desktop/api/fileapi...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: