private void FileOperationOnOperationStarted(object sender, FileOperationStartedEventArgs e) { handlerControl.WaitOne(); currentFile = e.FullPath.Replace("\\\\?\\UNC", "\\"); sourceVerificationComplete = false; targetVerificationComplete = false; verificationResult = false; var dir = Path.GetDirectoryName(currentFile); if (currentDir != dir) { currentDir = dir; ZCopyOutput.Print($"\r\n\r\n Directory: {currentDir}"); } Console.SetCursorPosition(0, currentCursorTop = cursorTop + 1); copyTimer.Restart(); handlerControl.ReleaseMutex(); }
private void MtfoOnOperationStarted(object sender, FileOperationStartedEventArgs e) { Interlocked.Increment(ref fileCount); Interlocked.Increment(ref filesBeingCopied); }