split out PEAR_PackageFileManager_File.php into a new package?
| From: | Greg Beaver | Date: | Sat, 18 Oct 2003 14:55:48 +0000 |
| Subject: | split out PEAR_PackageFileManager_File.php into a new package? | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-22792@lists.php.net to get a copy of this message | ||
Hi all,
The PEAR_PackageFileManager_File class in the PEAR_PackageFileManager package has some useful routines for retrieving full listings of files and directories, with the ability to selectively ignore based on standard shell wildcards, and also soon to selectively include based on wildcards. I replicate the code exactly in phpDocumentor, which leads me to believe there may be other applications that need it. I checked out File_Find, and although there is some similarity, I don't think the purpose of finding a file describes at all what the code intends to do. This code intends to simply grab a listing of every file in every directory minus ignored files. The listing is returned as a sorted flat array, allowing easy recursive processing without the need for a recursive structure or recursive code, a huge speedup in PHP, thanks to the magic of strnatcasecmp().
Basically, I'm wondering whether others would like to see this code split off into a package, perhaps Directory_List since that is its primary purpose, or File_List. If not, I'll just keep it where it is.
Regards,
Greg