Exemple #1
0
        public override void ProcessFile(string path)
        {
            FileInfo info = new FileInfo(path);
            var      size = info.Length / 1024;
            var      file = new CerberusFile(path, info.Name.Substring(0, info.Name.Length - info.Extension.Length), info.Extension.TrimStart('.'), info.DirectoryName, size);

            Files.Add(file);
        }
Exemple #2
0
 private void DisplayAudioFiles(CerberusFile file)
 {
     if (ShouldUseAudioCompression)
     {
         if (audioFileExtensions.Contains(file.Extension))
         {
             Files.Add(file);
         }
     }
 }
Exemple #3
0
 private void DisplayImageFiles(CerberusFile file)
 {
     if (ShouldUseImageCompression)
     {
         if (imageFileExtensions.Contains(file.Extension))
         {
             Files.Add(file);
         }
     }
 }
Exemple #4
0
        private void ChangeSelectionOfMetaFile(CerberusFile file, IList <CerberusFile> files)
        {
            if (files == null || !files.Any())
            {
                return;
            }

            files.First(f => f.Path.Equals(file.Path + CerberusTexts.MetaExtension)).Selected =
                file.Selected;
        }