Skip to content

Instantly share code, notes, and snippets.

@the-nose-knows
Created April 30, 2018 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save the-nose-knows/97fa752d49db56946ceede724d2a2c39 to your computer and use it in GitHub Desktop.
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
#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