Glob, anyone paying attention?
| From: | John Coggeshall | Date: | Sun, 10 Nov 2002 00:21:24 +0000 |
| Subject: | Glob, anyone paying attention? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-90720@lists.php.net to get a copy of this message | ||
I was just playing with glob() and realized that its pretty undocumented
(no flags doc'd) and none of the constants (GLOB_ONLYDIR for example)
are actually defined in PHP....
Just wanted to see if anyone is doing something with this, if not
(unless someone has an objection) I'll get put the constants in PHP and
update the docs. I was thinking of just defining the following (since a
few don't seem to apply):
GLOB_MARK Append a slash to filenames which are really directories
GLOB_NOSORT Do not sort the returned filenames
GLOB_NOCHECK If no files were found that match the filemask, return
the filemask instead of an empty array
GLOB_ONLYDIR Only match directories which meet the filemask
John