PHP Classes

PHP ScanDir Files: Get the list of files from a directory recursively

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 766 All time: 4,413 This week: 488Up
Version License PHP version Categories
scan-dir 1.0Free for non-comm...5.0PHP 5, Files and Folders


This class can get the list of files from a directory recursively.

It can traverse a given directory and optionally its subdirectories to extract the list of files that use certain file name extensions.

The class can optionally return the details of the files that were found like the filename including the full path of parent directory names, file size, date, permissions, base name and extension name.

The class can also return the total number of files that were found, as well the total size of all files.

Picture of GARCIA Jean-François
Name: GARCIA Jean-François <contact>
Classes: 1 package by
Country: France France
Age: 51
All time rank: 272375 in France France
Week rank: 305 Up12 in France France Up

  Files folder image Files  
File Role Description
Plain text file Class_ScanDir.php Class definition file for the Class ScanDir
Accessible without login HTML file Documentation_ScanDir.html Doc. Documentation about the class
Accessible without login Plain text file example.php Example Example use of Scandir Class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,413
This week:488Up