Progress: Virtual file creation needs no transfer progress #6933

Treat virtual file creation as a size-less action, similar to
propagating renames or deletions.
This commit is contained in:
Christian Kamm 2018-12-20 09:45:31 +01:00 committed by Kevin Ottens
parent cdf61b9e82
commit 8fecff5153
No known key found for this signature in database
GPG Key ID: 074BBBCB8DECC9E2

View File

@ -103,10 +103,13 @@ public:
/** Return true if the size needs to be taken in account in the total amount of time */
static inline bool isSizeDependent(const SyncFileItem &item)
{
return !item.isDirectory() && (item._instruction == CSYNC_INSTRUCTION_CONFLICT
|| item._instruction == CSYNC_INSTRUCTION_SYNC
|| item._instruction == CSYNC_INSTRUCTION_NEW
|| item._instruction == CSYNC_INSTRUCTION_TYPE_CHANGE);
return !item.isDirectory()
&& (item._instruction == CSYNC_INSTRUCTION_CONFLICT
|| item._instruction == CSYNC_INSTRUCTION_SYNC
|| item._instruction == CSYNC_INSTRUCTION_NEW
|| item._instruction == CSYNC_INSTRUCTION_TYPE_CHANGE)
&& !(item._type == ItemTypeVirtualFile
|| item._type == ItemTypeVirtualFileDehydration);
}
/**