filesystem.h 447 B

123456789101112131415161718
  1. #ifndef FILESYSTEM_H
  2. #define FILESYSTEM_H
  3. #include <QCryptographicHash>
  4. #include <QDir>
  5. class FileSystem
  6. {
  7. // Static class, which gives some extra functions for files/folders manipulation
  8. private:
  9. FileSystem() = default;
  10. public:
  11. static bool fileExists(QString path);
  12. static QString fileHash(const QString &fileName, QCryptographicHash::Algorithm hashAlgorithm);
  13. static void clearFolder(QDir &dir);
  14. };
  15. #endif // FILESYSTEM_H