# Reading Directory Structure

**URL:** https://forum.kirupa.com/t/reading-directory-structure/222805
**Category:** Uncategorized
**Created:** [April 17, 2007, 4:53am UTC](https://forum.kirupa.com/t/reading-directory-structure/222805 "2007-04-17T04:53:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![twistedpixel](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@twistedpixel](https://forum.kirupa.com/u/twistedpixel)
#### Post date: [April 17, 2007, 4:53am UTC](https://forum.kirupa.com/t/reading-directory-structure/222805/1 "2007-04-17T04:53:37Z")

</div>

Hi,

I really enjoy posting in this forum because the answers are so helpful. Anyway, for my latest project, i have a HUGE image gallery. I am now customzing that in XML through flash. I have the flash code to display all images. My images are in different folders, as time goes by, folders will increase… this display is not a problem.

The code that i have in flash displays the image and other details,( i got that from the forums) but i want to customize it by displaying the gallery name too. My logic is to read off the directory structure off the server and then displaying the current gallery in a textfield. So my question is how to read off the directory structure.

So my gallery would be arranged as this :

Main site  
Gallery  
Gallery1  
Gallery 2  
.  
.  
.

So if the user selects Gallery2 the textfield should display Gallery/Gallery2. I really don’t need the actual code, just some pointers as to what and where to look for.

Thanks a lot!
