wp/wp-admin/includes/class-wp-filesystem-ftpext.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
   694 	 * @return array|false {
   694 	 * @return array|false {
   695 	 *     Array of files. False if unable to list directory contents.
   695 	 *     Array of files. False if unable to list directory contents.
   696 	 *
   696 	 *
   697 	 *     @type string $name        Name of the file or directory.
   697 	 *     @type string $name        Name of the file or directory.
   698 	 *     @type string $perms       *nix representation of permissions.
   698 	 *     @type string $perms       *nix representation of permissions.
   699 	 *     @type int    $permsn      Octal representation of permissions.
   699 	 *     @type string $permsn      Octal representation of permissions.
   700 	 *     @type string $owner       Owner name or ID.
   700 	 *     @type string $owner       Owner name or ID.
   701 	 *     @type int    $size        Size of file in bytes.
   701 	 *     @type int    $size        Size of file in bytes.
   702 	 *     @type int    $lastmodunix Last modified unix timestamp.
   702 	 *     @type int    $lastmodunix Last modified unix timestamp.
   703 	 *     @type mixed  $lastmod     Last modified month (3 letter) and day (without leading 0).
   703 	 *     @type mixed  $lastmod     Last modified month (3 letter) and day (without leading 0).
   704 	 *     @type int    $time        Last modified time.
   704 	 *     @type int    $time        Last modified time.
   705 	 *     @type string $type        Type of resource. 'f' for file, 'd' for directory.
   705 	 *     @type string $type        Type of resource. 'f' for file, 'd' for directory.
   706 	 *     @type mixed  $files       If a directory and $recursive is true, contains another array of files.
   706 	 *     @type mixed  $files       If a directory and `$recursive` is true, contains another array of files.
   707 	 * }
   707 	 * }
   708 	 */
   708 	 */
   709 	public function dirlist( $path = '.', $include_hidden = true, $recursive = false ) {
   709 	public function dirlist( $path = '.', $include_hidden = true, $recursive = false ) {
   710 		if ( $this->is_file( $path ) ) {
   710 		if ( $this->is_file( $path ) ) {
   711 			$limit_file = basename( $path );
   711 			$limit_file = basename( $path );