get_dir_file_info($source_dir, $top_level_only)
Parameters: |
|
---|---|
Returns: |
An array containing info on the supplied directory’s contents |
Return type: |
array |
Reads the specified directory and builds an array containing the filenames, filesize, dates, and permissions. Sub-folders contained within the specified path are only read if forced by sending the second parameter to FALSE, as this can be an intensive operation.
Example:
$models_info = get_dir_file_info(APPPATH.'models/');
Please login to continue.