Why QDir open the directory with a name like test.lnk failed!
Unsolved
General and Desktop
-
Hello, everyone:
I have a problem using QDIR , QDir *dir = new QDir("D:\test\test.lnk"), dir points to the root directory D:\ instead of D:\test\test.lnk .Lnk is a directory (rename with.lnk suffix)Create a new folder and rename it test.lnk , In debug mode, observe infoList , the list is in the root directory.
development environment : Microsoft Windows 10 Build 19041 ,QT 5.7.0
thanks. -
don't use suffixes on directory names in windoze...especially the 'lnk' suffix, as lnk is windoze jargon for a symbolic link file.
-
@famoustang I can reproduce this on Windows 10 with Qt 5.11.1 MinGW.
Did you check the Qt bug tracker? You can file a bug if there is nothing yet for this issue. -
@Kent-Dorfman thanks for your advice,but fault-tolerance processing need.
-
@jsulm https://bugreports.qt.io/browse/QTBUG-85058 someone reported.
-