Esempio n. 1
0
        public void FileCompleted(FileInfo fi, string checksum)
        {
            lock (_lockStats)
            {
                numFilesCompleted++;
                totalBytesCompleted += fi.Length;
                lastFileCompleted    = fi.FullName;

                ReportFiles.WriteFileInfo(fi, Program.baseName, checksum, numFilesCompleted);
            }
        }
Esempio n. 2
0
        public void UniqueFileCompleted(FileInfo fi, string copiedFileFullPath, string checksum, string category)
        {
            lock (_lockStats)
            {
                numFilesScanned++;
                totalBytesScanned += fi.Length;
                lastFileScanned    = "Unique: " + fi.FullName;
                lastFileWasUnique  = true;

                numUniquesFound++;
                totalBytesCopied += fi.Length;

                ReportFiles.WriteUniqueInfo(fi, copiedFileFullPath, checksum, numUniquesFound, category);

                ReportFiles.WriteFileInfo(fi, copiedFileFullPath, Program.baseName, checksum, numUniquesFound);
            }
        }