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 ); |