PHP Classes

File System: Get a directory listing sorted by several options

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 516 All time: 5,732 This week: 455Up
Version License PHP version Categories
file_system 1.0BSD License5.2.0PHP 5, Files and Folders
Description 

Author

This class can be used to get the listing of a directory sorted by several options.

It can get the listing of a given directory. The listing may contain only files, only directories or both.

The class may sort the listing by entry type, name, date, size and file name extension. The sorting may be either set to ascending or descending order.

It may also take a callback function to implement custom list filtering.

Picture of Jamie Curnow
Name: Jamie Curnow <contact>
Classes: 4 packages by
Country: Australia Australia
Innovation award
Innovation award
Nominee: 2x

 

  Files folder image Files (4)  
File Role Description
Accessible without login Plain text file example.php Example Example Script
Accessible without login Image file file.png Icon Image for Example Script
Plain text file file_system.class.php Class The File_System Class file
Accessible without login Image file folder.png Icon Image for Example Script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:516
This week:0
All time:5,732
This week:455Up
User Comments (1)
Solid Class.
14 years ago (Michael Wittie)
70%StarStarStarStar