Beispiel #1
0
        public void Clear()
        {
            FileCheckedCount = 0;

            NewFiles.Clear();
            NewFilesForGroom.Clear();
            ChangedFiles.Clear();
            MissingFiles.Clear();
            LastModifiedDateFiles.Clear();
            ErrorFiles.Clear();
            IgnoredFiles.Clear();
            NewlyIgnoredFiles.Clear();
            IgnoredFilesForGroom.Clear();
            MovedFiles.Clear();
            MovedFileOrder.Clear();
            DuplicateFiles.Clear();
        }
Beispiel #2
0
        protected void DoTrackDuplicates()
        {
            DuplicateFiles.Clear();

            Dictionary <FileHash, List <ManifestFileInfo> > fileDict =
                new Dictionary <FileHash, List <ManifestFileInfo> >();

            CheckDuplicatesRecursive(
                Manifest.RootDirectory,
                fileDict);

            foreach (FileHash nextHash in fileDict.Keys)
            {
                List <ManifestFileInfo> nextList =
                    fileDict[nextHash];

                if (nextList.Count > 1)
                {
                    DuplicateFiles.Add(nextHash, nextList);
                }
            }
        }