PHP Classes
elePHPant
Icontem

list files and folders: list files and folders in a directory

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  All requests RSS feed  >  list files and folders  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

list files and folders

Edit

Picture of Agustín Sardón by Agustín Sardón - 9 months ago (2015-04-27)

list files and folders in a directory

This request is clear and relevant.
This request is not clear or is not relevant.

+8

given a directory, list files and folders on that directory

Ask clarification

4 Recommendations

PHP Filesystem Helper Library: Manipulate and search files and directories

This recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of Joshua McKenzie by Joshua McKenzie package author package author Reputation 65 - 2 months ago (2015-12-07) Comment

Like Ravi's, my class uses Iterators, which process with the loop, so it's cancelable and doesn't take much memory; which makes looping 100000+ files very easy. Regex supported. Hope it helps.


PHP SPL File Find: SPL iterator to find files with different criteria

This recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of Ravi Kumar by Ravi Kumar package author package author Reputation 90 - 6 months ago (2015-08-03) Comment

As Dave said there are plenty to choose, hope this helps.


MySQL Database Library: Access MySQL databases and manipulate files

This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of JME Farm by JME Farm package author package author Reputation 140 - 7 months ago (2015-06-22) Comment

The getfiles() method in my class lists all the files in a given directory, and returns an array of the names. You can filter out which files you want with a regular expression. Sorry, doesn't include directories, though.


Directory and file info: Retrieve information about files and directories

This recommendation solves the problem.
This recommendation does not solve the problem.

+4

Picture of Dave Smith by Dave Smith Reputation 5955 - 9 months ago (2015-05-03) Comment

There are plenty to choose from, this is the one that I would start with to see if it meets your needs.


Recommend package
: 
: