23 #ifndef DOOMSEEKER_FILEUTILS_H 24 #define DOOMSEEKER_FILEUTILS_H 29 #include <QStringList> 34 static QByteArray md5(
const QString &path);
51 static Qt::CaseSensitivity comparisonSensitivity();
70 const QStringList &nameFilters = QStringList());
static bool containsPath(const QStringList &candidates, const QString &path)
Uses QFileInfo::operator== to see if 'path' is on 'candidates' list.
static bool rmAllFiles(const QString &dirPath, const QStringList &nameFilters=QStringList())
Deletes all files in specified directory.
static QString cdUpUntilExists(QString path)
Moves upwards the path until it finds the path that exists.