예제 #1
0
        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);
        }
예제 #2
0
 public void Add(MetainfoEntry entry, RepositoryAllocationRange range)
 {
     items.Add(range);
 }