QDir::entryList() With QDir::AllDirs Filter Treats Windows Shortcut Files as Symbolic Links - Bug?
-
@Crag_Hack said in QDir::entryList() With QDir::AllDirs Filter Treats Windows Shortcut Files as Symbolic Links - Bug?:
Is this by design or a coding oversight?
By design as this was the way to go for symbolic links a long time ago on windows.
-
@Christian-Ehrlicher Lol after one too many stack overflow posts with people criticizing me for not adding any code I finally added too much code... I edited the first post for brevity.
How long has Windows had symbolic link support for? Since the age of dinosaurs perhaps? Considering any program that old probably lost Windows compatibility long ago how come Qt hasn't updated their way of doing things?
It looks like the only way to properly enumerate and traverse the file/directory structure with Windows shortcut files is to use the Win API which defeats the purpose of using Qt in the first place. Is there another way of doing things properly with Qt?
Should we perhaps try to influence Qt to change the way of doing things?
Thanks!
-
@Christian-Ehrlicher Got any input? Thanks!
-
What should I write? Windows and symbolic links ... is a mess. I need admin rights to create them so they're not usable for me.
-
Eh I guess the only viable option then is to turn off symbolic links when dealing with shortcut files and otherwise resort to using the Win API if the need to properly handle such things is a requirement. Thanks though. I was hoping the Qt company could at least create an option to no longer treat shortcut files as symbolic links when using QDir::entryList() and related API members.
-
@Crag_Hack You can ask them.
-
@Christian-Ehrlicher Via this guy? https://bugreports.qt.io/issues/
-
@Crag_Hack Yes