Console.Write(@"ViewVC Start URL:(HTTP:///): "); wc.BaseAddress = Console.ReadLine(); Console.Write(@"Where to store your files? (Driver:\Dir): "); store = Console.ReadLine(); wcFileDown.Proxy = proxy; wc.Proxy = proxy; Console.WriteLine("Start downloading"); DirList dl; dl = getTree("/"); Console.WriteLine("Done! Press Enter Key to Finish"); Console.ReadLine(); }
/// <summary> /// Search the newest files and download them from CVS /// </summary> /// <param name="address">Relative url where ViewVC page</param> /// <returns></returns> public static DirList getTree(string address) { DirList dir = new DirList(); dir.dir=new List<DirList>(); dir.file = new List<string>();