Created
April 30, 2018 18:43
-
-
Save the-nose-knows/97fa752d49db56946ceede724d2a2c39 to your computer and use it in GitHub Desktop.
QFile 5.10 returning true for a directory instead of a file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QCoreApplication> | |
#include <QDebug> | |
#include <QFile> | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); | |
qDebug() << "Folder is detected as file?" << QFile::exists("C:/config.folder"); | |
return a.exec(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment