update docs

This commit is contained in:
crazywhalecc
2022-08-03 17:14:40 +08:00
parent b94bbbca20
commit af75fc2f94
5 changed files with 18 additions and 6 deletions

View File

@@ -158,12 +158,12 @@ public function loadFromJson(string $filename): null|mixed
## scanDirFiles
```php
public function scanDirFiles(string $dir, bool $recursive, bool|string $relative, bool $include_dir): array|false
public function scanDirFiles(string $dir, bool $recursive, bool|mixed|string $relative, bool $include_dir): array|false
```
### 描述
递归或非递归扫描目录,可返回相对目录或绝对目录的文件或目录列表
递归或非递归扫描目录,可返回相对目录的文件列表或绝对目录的文件列表
### 参数
@@ -171,8 +171,8 @@ public function scanDirFiles(string $dir, bool $recursive, bool|string $relative
| -------- | ---- | ----------- |
| dir | string | 目录 |
| recursive | bool | 是否递归扫描子目录 |
| relative | bool|string | 是否返回相对目录如果为true则返回相对目录如果为false则返回绝对目录 |
| $include_dir | bool | 如果为true则返回目录为false则只返回文件
| relative | bool|mixed|string | 是否返回相对目录如果为true则返回相对目录如果为false则返回绝对目录 |
| include_dir | bool | 非递归模式下,是否包含目录 |
### 返回