diff options
Diffstat (limited to 'synchronization.cpp')
-rw-r--r-- | synchronization.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/synchronization.cpp b/synchronization.cpp index 0c04e68f..91d11c04 100644 --- a/synchronization.cpp +++ b/synchronization.cpp @@ -522,6 +522,7 @@ Zstring DeletionHandling::getOrCreateRecyclerTempDirPf() //throw FileError } #endif + void DeletionHandling::tryCleanup(bool allowUserCallback) //throw FileError { if (!cleanedUp) @@ -563,6 +564,7 @@ void DeletionHandling::tryCleanup(bool allowUserCallback) //throw FileError } } + namespace { template <class Function> @@ -2429,7 +2431,12 @@ FileAttrib SynchronizeFolderPair::copyFileUpdatingTo(const FileMapping& fileObj, try { //contains prefix: E.g. "\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\Program Files\FFS\sample.dat" - source = shadowCopyHandler_->makeShadowCopy(source); //throw FileError + source = shadowCopyHandler_->makeShadowCopy(source, //throw FileError + [&](const Zstring& volumeName) + { + procCallback_.reportStatus(replaceCpy(_("Creating Volume Shadow Copy for %x..."), L"%x", fmtFileName(volumeName))); + procCallback_.forceUiRefresh(); + }); } catch (const FileError& e2) { |