cli: CommandUpdate: When path is a dir, don't do anything (no deletion or updates)
Αυτή η υποβολή περιλαμβάνεται σε:
γονέας
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)
|
||||||
|
Φόρτωση…
Αναφορά σε νέο ζήτημα
Block a user