static void Main()
        {
            var traverser = new DirectoryTraverser(@"C:\");

            var children = traverser.GetChildDirectories();
            foreach (var child in children)
            {
                Console.WriteLine(child);
            }

            Console.WriteLine(traverser.CurrentDirectory);
        }
        static void Main()
        {
            var traverser = new DirectoryTraverser(
                @"C:\SVN\web-services-and-cloud\August-2015");

            var children = traverser.GetChildDirectories();
            foreach (var child in children)
            {
                Console.WriteLine(child);
            }

            Console.WriteLine(traverser.CurrentDirectory);
        }
        static void Main()
        {
            var traverser = new DirectoryTraverser(@"C:\");

            var children = traverser.GetChildDirectories();

            foreach (var child in children)
            {
                Console.WriteLine(child);
            }

            Console.WriteLine(traverser.CurrentDirectory);
        }
Beispiel #4
0
        static void Main()
        {
            var traverser = new DirectoryTraverser(
                @"C:\SVN\web-services-and-cloud\August-2015");

            var children = traverser.GetChildDirectories();

            foreach (var child in children)
            {
                Console.WriteLine(child);
            }

            Console.WriteLine(traverser.CurrentDirectory);
        }
        private static void RunDirectoryTraverser(StandardKernel kernel)
        {
            var directoryProvider = kernel.Get<IDirectoryProvider>();
            var traverser = new DirectoryTraverser(
                @"C:\SVN\web-services-and-cloud\August-2015",
                directoryProvider);

            var children = traverser.GetChildDirectories();
            foreach (var child in children)
            {
                Console.WriteLine(child);
            }

            Console.WriteLine(traverser.CurrentDirectory);
        }