Discovery: Fix renaming on windows

buf.type is ItemFileSkip because csync_vio_local_stat does not set this field
This commit is contained in:
Olivier Goffart 2018-11-02 16:46:38 +01:00 committed by Kevin Ottens
parent beee123c80
commit eb23776f16
No known key found for this signature in database
GPG Key ID: 074BBBCB8DECC9E2
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,7 @@ void ProcessDirectoryJob::processFileAnalyzeRemoteInfo(
qCInfo(lcDisco) << "Local file does not exist anymore." << originalPath;
return;
}
if (buf.modtime != base._modtime || buf.size != base._fileSize || buf.type != ItemTypeFile) {
if (buf.modtime != base._modtime || buf.size != base._fileSize || buf.type == ItemTypeDirectory) {
qCInfo(lcDisco) << "File has changed locally, not a rename." << originalPath;
return;
}