static void Main(string[] args) { Stopwatch sw = new Stopwatch(); sw.Start(); string dirPath = @"C:\"; DirStat.GetStatForDirAndItsChildren(dirPath).ForEach(x => PrintSingleDirInfo(x)); sw.Stop(); Console.WriteLine("Time taken: " + sw.ElapsedMilliseconds); Console.ReadLine(); }
public ActionResult Index(string rootDirPath = @"C:\users", bool rescan = false) { List <DirStat> list = DirStat.GetStatForDirAndItsChildren(rootDirPath, rescan); return(View(list)); }