2 ms·
The irony of commenting that under an article that cites the maximum path cannot exceed 260 characters is not lost on me
by mdaniel 4y ago
The irony of commenting that under an article that cites the maximum path cannot exceed 260 characters is not lost on me
- blibble 4y agohow is that ironic?
- inferiorhuman 4y agoIt's like rain on your wedding day
- noAnswer 4y agoBut the path length can be longer! They just don't care and offload the work.
- mauvehaus 4y agoThe maximum path length of the NT kernel is 3276-something UCS-2 characters. 260 is a limit imposed by the legacy Win32 interfaces IIRC. I believe the W-interfaces get you the full-fat version, it's just that they're so inconsistently used as to all but guarantee that something you need will have problems. The user-mode stuff is kind of a mess. The kernel-mode stuff is comparatively orthogonal.
- magicalhippo 4y agoYou also have to prefix[1] the path with \\?\ unless you've enabled a group policy[2] in Windows 10+. [1]: https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea#parameters https://learn.microsoft.com/en-us/windows/win32/api/fileapi/... [2]: https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#maximum-path-length-limitation https://learn.microsoft.com/en-us/windows/win32/fileio/namin...