File_Find

File_Find --  Commonly needed functions searching directory trees

File_Find::glob

array &File_Find::glob ([string $pattern string $dirpath string $pattern_type = 'php'])

Search the current directory to find matches for the the specified pattern.

Parameter

Returns

The format of the $pattern depends on the $pattern_type-value. If this value is 'php', then the pattern has to follow the conventions of the eregi_*-functions, else if the value 'perl', then follow the preg_*-patternformat. It is recommanded to use 'perl', because this is faster.

File_Find::search

array &File_Find::search ([string $pattern string $dirpath string $pattern_type = 'php'])

Search the specified directory tree with the specified pattern. Return an array containing all matching files (no directories included).

Parameter

Returns

The format of the $pattern depends on the $pattern_type-value. If this value is 'php', then the pattern has to follow the conventions of the eregi_*-functions, else if the value 'perl', then follow the preg_*-patternformat. It is recommanded to use 'perl', because this is faster.

File_Find::maptree

array &File_Find::maptree (string $directory)

Map the directory tree given by the directory_path parameter.

Parameter

Returns