Skip to content

Commit b212eec

Browse files
committed
Update file readPathSync doc
1 parent 53f0eea commit b212eec

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/giant-eggs-tap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"bettergi-js-types": patch
3+
---
4+
5+
Update file readPathSync doc

packages/bettergi-js-types/types/file.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ type Callback<T> = (error?: string, context: T) => void
1111
export class File {
1212
/**
1313
* 读取指定文件夹内所有文件和文件夹的路径
14+
*
15+
* PS: 当文件夹不存在时,会创建文件夹,并返回空数组
1416
* @param folderPath 文件夹路径
1517
*/
1618
readPathSync(folderPath: string): string[]

0 commit comments

Comments
 (0)