Does QDir impose a maximum path limit on Windows?
-
Dear Qt experts,
I was reading through Qt Assistant 5.3.2 and I didn't found info on this topic. I'm using Windows 7 SP1 64-bit. According to the Windows API functions the unicode versions of the functions like CreateFileW have a path limit of 32,767 wide characters when the path is prepended with "\\?\". Does Qt call the winapi functions with this prepend? I hope QDir isn't limited by MAX_PATH of 260 characters. But I think I still have the responsibility not to exceed the number of 32,767 for Qt development on Windows, right?
Thank you very much for your attention and time!
Best regards,
Maarten -
@Maarten-Verhage said in Does QDir impose a maximum path limit on Windows?:
When the path is prepended with "\?". Does Qt call the winapi functions with this prepend?
But I think I still have the responsibility not to exceed the number of 32,767 for Qt development on Windows, right?
As far as I can see in the source, yes, you do.
-
@kshegunov, does this override
LongPathsEnabled
'sMAX_PATH
bypass for non-NT Object Manager, Win32 Device Namespace, and/or UNC paths? I ask forgithub.com/Murmele/Gittyup/issues/827
. -
Shouldn't, but I don't know.
As far as links go, these seem to point to a newer version of the code. Bear in mind the original post was 7 years ago ...