public string GetExtractPath(Entry entry) { if (ExtractPaths.ContainsKey(entry)) { string path = ExtractPaths[entry]; return(File.Exists(path) ? null : path); } else { return(null); } }
public void SetExtractPath(Entry entry, string destinationPath) { if (destinationPath != null) { ExtractPaths.Add(entry, destinationPath); if (ArchiveHelpers.IsPlugin(destinationPath)) { PluginPaths.Add(destinationPath); } else if (ArchiveHelpers.IsArchive(destinationPath)) { ArchivePaths.Add(destinationPath); } } }
public void ClearExtractPaths() { ExtractPaths.Clear(); PluginPaths.Clear(); ArchivePaths.Clear(); }