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); }
private void DisplayAudioFiles(CerberusFile file) { if (ShouldUseAudioCompression) { if (audioFileExtensions.Contains(file.Extension)) { Files.Add(file); } } }
private void DisplayImageFiles(CerberusFile file) { if (ShouldUseImageCompression) { if (imageFileExtensions.Contains(file.Extension)) { Files.Add(file); } } }
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; }