PHP Classes

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

Recommend this page to a friend!
  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 - 8 years 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.

+9

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 - 8 years 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 - 8 years 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 Justin Eldracher by Justin Eldracher package author package author Reputation 140 - 8 years 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 6845 - 8 years 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
: 
: