diff --git a/cli/commanddelete.cpp b/cli/commanddelete.cpp index 8c48aa8..f40100c 100644 --- a/cli/commanddelete.cpp +++ b/cli/commanddelete.cpp @@ -20,7 +20,7 @@ int CommandDelete::removeNonExistent(bool verbose, bool dryRun, QString pattern) if(!dryRun) { QFileInfo fileInfo(file.absPath); - if(fileInfo.exists()) + if(!fileInfo.exists()) { if(this->dbService->deleteFile(file.absPath)) {