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:
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user