filesystem.h 595 B

1234567891011121314151617181920212223242526
  1. #ifndef FILESYSTEM_H
  2. #define FILESYSTEM_H
  3. #include <QObject>
  4. #include <QFile>
  5. #include <QDir>
  6. #include <QFileInfo>
  7. #include <QCryptographicHash>
  8. #include <QDebug>
  9. #include <QSettings>
  10. namespace FileSystem {
  11. extern bool fileExists(QString path);
  12. extern bool folderExists(QString path);
  13. extern bool createFilePath(QString file_path);
  14. extern QString fileHash(const QString &fileName, QCryptographicHash::Algorithm hashAlgorithm = QCryptographicHash::Md5);
  15. extern void clearFolder(QDir &dir);
  16. extern QStringList recognizeRegistryLotroPath();
  17. }
  18. #endif // FILESYSTEM_H