mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00: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
d09c4fd2e8
commit
db346dfc08
@ -873,7 +873,7 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo(
|
||||
}
|
||||
|
||||
// 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)) {
|
||||
qCInfo(lcDisco) << "checking checksum of potential rename " << path._original << item->_checksumHeader << base._checksumHeader;
|
||||
if (item->_checksumHeader != base._checksumHeader) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user