cli: CommandUpdate: When path is a dir, don't do anything (no deletion or updates)

Αυτή η υποβολή περιλαμβάνεται σε:
Albert S. 2022-06-02 09:05:49 +02:00
γονέας db029dd915
υποβολή 05606dd502

@ -53,7 +53,9 @@ int CommandUpdate::handle(QStringList arguments)
for(FileData &fileData : files) for(FileData &fileData : files)
{ {
QFileInfo fileInfo(fileData.absPath); QFileInfo fileInfo(fileData.absPath);
if(fileInfo.exists() && fileInfo.isFile()) if(fileInfo.exists())
{
if(fileInfo.isFile())
{ {
if(fileInfo.lastModified().toSecsSinceEpoch() != fileData.mtime) if(fileInfo.lastModified().toSecsSinceEpoch() != fileData.mtime)
{ {
@ -67,6 +69,7 @@ int CommandUpdate::handle(QStringList arguments)
} }
} }
} }
}
else else
{ {
if(deleteMissing) if(deleteMissing)