filesystem.h 400 B

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