list_files Wordpress function


Description:

Returns a listing of all files in the specified folder and all subdirectories up to 100 levels deep.


Syntax:


Arguments:

(string) $folder Full path to folder
(int) $levels (optional) Levels of folders to follow, Default: 100 (PHP Loop limit).


Return Type:

(bool|array) False on failure, Else array of files


Define At:

wp-admin/includes/file.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/list_files


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×