O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reading a structure of directories

After creating many folders, it may be necessary to get a list of them, together with subdirectories. Fortunately, it is possible to iterate through directories, as you will see in the current recipe.

As an example, you will modify the project from the previous recipe by adding a text block and an Iterate through directories button. After pressing it, a textual representation of the structure of directories is generated and presented in the text block.

Getting ready

To step through this recipe, you need the project from the previous recipe.

How to do it...

To create an example that gets a list of directories, as well as iterate through them, perform the following steps:

  1. Add the Iterate through directories button and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required