filesystem.cpp 530 B

1234567891011121314151617
  1. #include "filesystem.h"
  2. #include <QFile>
  3. #include <QFileInfo>
  4. static bool FileSystem::fileExists(QString path) {
  5. QFileInfo check_file(path);
  6. bool exists = check_file.exists() && check_file.isFile();
  7. if(exists == false)
  8. qWarning("%s:%i: %s%s", __FILE__, __LINE__, "Файл не найден: ", app->helper->stringToChar(path));
  9. return exists;
  10. }
  11. static QString FileSystem::fileHash(const QString &fileName, QCryptographicHash::Algorithm hashAlgorithm);
  12. static void FileSystem::clearFolder(QDir &dir);