# Can Flash read the number of files in a directory?

**URL:** <https://forum.kirupa.com/t/can-flash-read-the-number-of-files-in-a-directory/197325>\
**Category:** flash\
**Created:** [August 15, 2006, 5:20pm UTC](https://forum.kirupa.com/t/can-flash-read-the-number-of-files-in-a-directory/197325 "2006-08-15T17:20:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![epsidon](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@epsidon](https://forum.kirupa.com/u/epsidon)\
**Post date:** [August 15, 2006, 5:20pm UTC](https://forum.kirupa.com/t/can-flash-read-the-number-of-files-in-a-directory/197325/1 "2006-08-15T17:20:42Z")

</div>

I am currently working on a project and need to get the total number of files in a directory.  
So for example, when the flash program first starts up, and if there are 5 files in the directory, it scans the number of files and returns the value 5 into a variable that I can manipulate.

Is Flash even able to do this? I’ve looked around, and I can’t seem to find an answer.

edit: I don’t know why I used the code tag…I guess it should be the question tag.
