Bug #17086 Updated: A command to retrieve the number of files in a dir /w regex

From: Date: Tue, 04 Jun 2002 18:04:04 +0000
Subject: Bug #17086 Updated: A command to retrieve the number of files in a dir /w regex
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9486@lists.php.net to get a copy of this message
ID: 17086 Updated by: mfischer@php.net Reported By: jeroen@vogelpoel.com Status: Closed Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.2.0 New Comment: glob() is only in CVS so far. Previous Comments: ------------------------------------------------------------------------ [2002-06-04 13:49:20] sander@php.net Use glob() and your imagination. ------------------------------------------------------------------------ [2002-05-07 21:13:56] jeroen@vogelpoel.com IMHO, it would be handy to have a command that returns the number of files in a directory. What would be a good idea to add to this is regex support, so you can only list files with specific extensions or such. Another handy option would be the ability to exclude directories from the count, including . and .. by using a boolean value. In order to further illustrate it, take a look at how I think the command should look like int num_files ( string directory, string pattern , bool hide_dirs ) Returns the number of files in [directory] matching [pattern] ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17086&edit=1

« previous php.bugs (#9486) next »