Пример #1
0
        static void CheckDirectoryFinder()
        {
            var sw = StopWatch.StartNew();
            var df = new DirectoryFinder {
                BaseDirectory = "/"
            };

            //ff.EnableDebug = true;
            df.Start();
            var count = 0;

            while (!df.Completed)
            {
                Thread.Sleep(1000);
                var files = df.Get(true);
                ShowProgress(df.Progress, sw);
                count += files.Count;
            }

            df.Close();
            Console.WriteLine(count + " files");
            Console.WriteLine(sw.Elapsed.FormatTime());
            Console.WriteLine(sw.Elapsed.ToString());
        }