wp/wp-admin/includes/class-wp-filesystem-direct.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
   586 	 * @return array|false {
   586 	 * @return array|false {
   587 	 *     Array of files. False if unable to list directory contents.
   587 	 *     Array of files. False if unable to list directory contents.
   588 	 *
   588 	 *
   589 	 *     @type string $name        Name of the file or directory.
   589 	 *     @type string $name        Name of the file or directory.
   590 	 *     @type string $perms       *nix representation of permissions.
   590 	 *     @type string $perms       *nix representation of permissions.
   591 	 *     @type int    $permsn      Octal representation of permissions.
   591 	 *     @type string $permsn      Octal representation of permissions.
   592 	 *     @type string $owner       Owner name or ID.
   592 	 *     @type string $owner       Owner name or ID.
   593 	 *     @type int    $size        Size of file in bytes.
   593 	 *     @type int    $size        Size of file in bytes.
   594 	 *     @type int    $lastmodunix Last modified unix timestamp.
   594 	 *     @type int    $lastmodunix Last modified unix timestamp.
   595 	 *     @type mixed  $lastmod     Last modified month (3 letter) and day (without leading 0).
   595 	 *     @type mixed  $lastmod     Last modified month (3 letter) and day (without leading 0).
   596 	 *     @type int    $time        Last modified time.
   596 	 *     @type int    $time        Last modified time.
   597 	 *     @type string $type        Type of resource. 'f' for file, 'd' for directory.
   597 	 *     @type string $type        Type of resource. 'f' for file, 'd' for directory.
   598 	 *     @type mixed  $files       If a directory and $recursive is true, contains another array of files.
   598 	 *     @type mixed  $files       If a directory and `$recursive` is true, contains another array of files.
   599 	 * }
   599 	 * }
   600 	 */
   600 	 */
   601 	public function dirlist( $path, $include_hidden = true, $recursive = false ) {
   601 	public function dirlist( $path, $include_hidden = true, $recursive = false ) {
   602 		if ( $this->is_file( $path ) ) {
   602 		if ( $this->is_file( $path ) ) {
   603 			$limit_file = basename( $path );
   603 			$limit_file = basename( $path );