Gets details for files in a directory or a specific file.
$pathstringrequired
$include_hiddenbooloptional
Default:true
$recursivebooloptional
Default:false
...$0 arrayname stringperms stringpermsn stringnumber int|string|falseowner string|falsegroup string|falsesize int|string|falselastmodunix int|string|falselastmod string|falsetime string|falsetype string'f' for file, 'd' for directory, 'l' for link.files array|false$recursive is true, contains another array of files. False if unable to list directory contents.public function dirlist( $path, $include_hidden = true, $recursive = false ) {
return false;
}
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_filesystem_base/dirlist