| File_Find::maptree() (Previous) | (Next) File_Find::search() | ||||
| |
|||||
|
|||||
Map the directory tree given by the directory_path parameter. Depending on maxrecursion you get the content of the directory and the content of the subdirectories too.
string $directory - contains the directory path that you want to map
integer $maxrecursion - defines the deep of recursive mapping of subdirectories
integer $count - can be ignored - internal parameter to track recursion level
Example 44-1. Get the content of a directory including the content of subdirectories
The above example will output something similar to:
|
| File_Find::maptree() (Previous) | (Next) File_Find::search() | ||||||||
| |
|||||||||
|
|||||||||