mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +03:00
Vfs: Make move detection work with virtual files #7001
Previously a checksum computation could be done on a suffix-placeholder file, making discovery believe that no move took place.
This commit is contained in:
parent
00dcf3ef59
commit
e6990bd04e
1 changed files with 1 additions and 1 deletions
|
@ -881,7 +881,7 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify the checksum where possible
|
// Verify the checksum where possible
|
||||||
if (!base._checksumHeader.isEmpty() && item->_type == ItemTypeFile) {
|
if (!base._checksumHeader.isEmpty() && item->_type == ItemTypeFile && base._type == ItemTypeFile) {
|
||||||
if (computeLocalChecksum(base._checksumHeader, _discoveryData->_localDir + path._original, item)) {
|
if (computeLocalChecksum(base._checksumHeader, _discoveryData->_localDir + path._original, item)) {
|
||||||
qCInfo(lcDisco) << "checking checksum of potential rename " << path._original << item->_checksumHeader << base._checksumHeader;
|
qCInfo(lcDisco) << "checking checksum of potential rename " << path._original << item->_checksumHeader << base._checksumHeader;
|
||||||
if (item->_checksumHeader != base._checksumHeader) {
|
if (item->_checksumHeader != base._checksumHeader) {
|
||||||
|
|
Loading…
Reference in a new issue