Exemple #1
0
        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();
        }
Exemple #2
0
        public ActionResult Index(string rootDirPath = @"C:\users", bool rescan = false)
        {
            List <DirStat> list = DirStat.GetStatForDirAndItsChildren(rootDirPath, rescan);

            return(View(list));
        }