get_dir_file_info($source_dir, $top_level_only)
Parameters:
$source_dir (string) – Directory path
$top_level_only (bool) – Whether to look only at the specified directory (excluding sub-directories) 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