Home > SYS_FileSystem > listFilesOfFileSystem
SYS_FileSystem.listFilesOfFileSystem() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
查看文件系统路径下的文件列表
Signature
typescript
listFilesOfFileSystem(folderPath: string, recursive?: boolean): Promise<Array<ISYS_FileSystemFileList>>;
1
Parameters
Parameter | Type | Description |
---|---|---|
folderPath | string | 目录路径 |
recursive | boolean | (Optional) 是否递归获取所有子文件 |
Returns
Promise<Array<ISYS_FileSystemFileList>>
当前目录下的文件列表
Remarks
注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 throw Error
注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 throw Error