Filtering and Modifying Directory Listings with File::Util

February 11, 2005 17:17, contributed by: demian

If you need to run directory listings through various filters and transforms, File_Util::listDir is your friend, especially with the recently added callback final arg.

Check out recent Seagull code updates to see the flexibility of the current approach, we need to consolidate all Seagull directory methods in order for next step of front controller to be implemented.

getAllNavDrivers() is the first converted method, it makes use of callbacks, lambda fns and pass-by-ref to update filtered dir listings.

[back to list]

comments


be the first to leave a comment
Enter your comment Note: Comments must be approved before being displayed.
   #    #######   #####   ####### 
  ##    #        #     #  #    #  
 # #    #        #            #   
   #    ######   ######      #    
   #          #  #     #    #     
   #    #     #  #     #    #     
 #####   #####    #####     #     
 

Syndicate

At a Glance

Sponsors

Login

Username Password

Not Registered?
Forgot Your Password

*denotes required field

Community

 
Seagull PHP Framework Seagull PHP Framework

Sponsored by

The Seagull project is sponsored by Seagull Systems, see the range of products and services offered.

Readers