# Make array from directory

**URL:** <https://forum.kirupa.com/t/make-array-from-directory/230947>\
**Category:** Uncategorized\
**Created:** [June 30, 2007, 12:06pm UTC](https://forum.kirupa.com/t/make-array-from-directory/230947 "2007-06-30T12:06:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duck](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@Duck](https://forum.kirupa.com/u/Duck)\
**Post date:** [June 30, 2007, 12:06pm UTC](https://forum.kirupa.com/t/make-array-from-directory/230947/1 "2007-06-30T12:06:31Z")

</div>

Hey guys, im trying to put together a script that pulls all the videos from a certain directory.  
But im stuck at getting the filenames from the directory. I wonder if any of you could help out.

What im looking to do is have a script that checks a certain directory on a webserver and builds and array from the filenames.

Thanks  
Duck
