public static string GetPath(this MetainfoEntry entry, string destination) { List <string> names = new List <string>(); foreach (string name in entry.Name) { string value = name; foreach (char character in Path.GetInvalidFileNameChars()) { value = value.Replace(character, '-'); } names.Add(value); } string path = String.Join(Path.DirectorySeparatorChar.ToString(), names); string result = Path.Combine(destination, path); return(result); }
public void Add(MetainfoEntry entry, RepositoryAllocationRange range) { items.Add(range); }