Skip to content

Instantly share code, notes, and snippets.

@benjbaron
Created July 16, 2015 17:06
Show Gist options
  • Save benjbaron/0b29aadf4f0c4d8e13ee to your computer and use it in GitHub Desktop.
Save benjbaron/0b29aadf4f0c4d8e13ee to your computer and use it in GitHub Desktop.

Revisions

  1. @benslk benslk created this gist Jul 16, 2015.
    8 changes: 8 additions & 0 deletions checkFile.cpp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    QString checkFile(QString foldername, QStringList exts, QString filename) {
    foreach(auto ext, exts) {
    QFileInfo check(foldername+"/"+filename+"."+ext);
    if(check.exists() && check.isFile())
    return check.absoluteFilePath();
    return QString();
    }
    }