thrownewIOException(string.Format("File move incomplete, data loss may have occurred. [{0}] was {1} bytes long instead of the expected {2}.",targetPath,targetSize,originalSize));
_logger.Debug("File {0} incomplete, waiting in case filesystem is not synchronized. [{1}] was {2} bytes long instead of the expected {3}.",action,targetPath,targetSize,originalSize);
WaitForIO();
targetSize=_diskProvider.GetFileSize(targetPath);
if(targetSize==originalSize)
{
return;
}
thrownewIOException(string.Format("File {0} incomplete, data loss may have occurred. [{1}] was {2} bytes long instead of the expected {3}.",action,targetPath,targetSize,originalSize));