4
1
mirror of https://github.com/QuasarApp/CQtDeployer.git synced 2025-05-08 07:29:36 +00:00

added validation for removeing files

This commit is contained in:
Andrei Yankovich 2020-09-09 16:55:20 +03:00
parent 99983d4791
commit f8c09ed379

@ -499,6 +499,10 @@ bool FileManager::copyFiles(const QStringList &source,
bool FileManager::removeFile(const QFileInfo &file) {
if (!file.exists()) {
return true;
}
if (!QFile::remove(file.absoluteFilePath())) {
QuasarAppUtils::Params::log("Qt Operation fail (remove file) " + file.absoluteFilePath(),
QuasarAppUtils::Warning);