예제 #1
0
        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();
        }
예제 #2
0
 private void MtfoOnOperationStarted(object sender, FileOperationStartedEventArgs e)
 {
     Interlocked.Increment(ref fileCount);
     Interlocked.Increment(ref filesBeingCopied);
 }