WordPress at Your Fingertips
function is not described

WP_Filesystem_Base::dirlist() public WP 2.5.0

Gets details for files in a directory or a specific file.

{} It's a method of the class: WP_Filesystem_Base{}

No Hooks.

Return

Array|false. Array of files. False if unable to list directory contents.

Usage

$WP_Filesystem_Base = new WP_Filesystem_Base();
$WP_Filesystem_Base->dirlist( $path, $include_hidden, $recursive );
$path(string) (required)
Path to directory or file.
$include_hidden(true|false)
Whether to include details of hidden ("." prefixed) files.
Default: true
$recursive(true|false)
Whether to recursively include file details in nested directories.
Default: false

Changelog

Since 2.5.0 Introduced.

Code of WP_Filesystem_Base::dirlist() WP 5.8.2

public function dirlist( $path, $include_hidden = true, $recursive = false ) {
	return false;
}