# Looping trough folders

**URL:** <https://forum.kirupa.com/t/looping-trough-folders/304851>\
**Category:** flash\
**Created:** [February 15, 2010, 2:41pm UTC](https://forum.kirupa.com/t/looping-trough-folders/304851 "2010-02-15T14:41:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ekry](https://avatars.discourse-cdn.com/v4/letter/e/b38774/32.png) [@Ekry](https://forum.kirupa.com/u/Ekry)\
**Post date:** [February 15, 2010, 2:41pm UTC](https://forum.kirupa.com/t/looping-trough-folders/304851/1 "2010-02-15T14:41:31Z")

</div>

I need to load contents of all folders, their subfolders and so on under a specific folder. I would then save a reference to each into a dictionary, naming them according to their filepath. I’m using the BulkLoader.

I would prefer the program to do this dynamically, without having to create a separate XML or the like to specify the filepaths.

I woud greatly appreciate advice on how to do this. Thank you!
