wp/wp-admin/includes/class-wp-filesystem-ftpsockets.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
   607 	 * @return array|false {
   607 	 * @return array|false {
   608 	 *     Array of files. False if unable to list directory contents.
   608 	 *     Array of files. False if unable to list directory contents.
   609 	 *
   609 	 *
   610 	 *     @type string $name        Name of the file or directory.
   610 	 *     @type string $name        Name of the file or directory.
   611 	 *     @type string $perms       *nix representation of permissions.
   611 	 *     @type string $perms       *nix representation of permissions.
   612 	 *     @type int    $permsn      Octal representation of permissions.
   612 	 *     @type string $permsn      Octal representation of permissions.
   613 	 *     @type string $owner       Owner name or ID.
   613 	 *     @type string $owner       Owner name or ID.
   614 	 *     @type int    $size        Size of file in bytes.
   614 	 *     @type int    $size        Size of file in bytes.
   615 	 *     @type int    $lastmodunix Last modified unix timestamp.
   615 	 *     @type int    $lastmodunix Last modified unix timestamp.
   616 	 *     @type mixed  $lastmod     Last modified month (3 letter) and day (without leading 0).
   616 	 *     @type mixed  $lastmod     Last modified month (3 letter) and day (without leading 0).
   617 	 *     @type int    $time        Last modified time.
   617 	 *     @type int    $time        Last modified time.
   618 	 *     @type string $type        Type of resource. 'f' for file, 'd' for directory.
   618 	 *     @type string $type        Type of resource. 'f' for file, 'd' for directory.
   619 	 *     @type mixed  $files       If a directory and $recursive is true, contains another array of files.
   619 	 *     @type mixed  $files       If a directory and `$recursive` is true, contains another array of files.
   620 	 * }
   620 	 * }
   621 	 */
   621 	 */
   622 	public function dirlist( $path = '.', $include_hidden = true, $recursive = false ) {
   622 	public function dirlist( $path = '.', $include_hidden = true, $recursive = false ) {
   623 		if ( $this->is_file( $path ) ) {
   623 		if ( $this->is_file( $path ) ) {
   624 			$limit_file = basename( $path );
   624 			$limit_file = basename( $path );