eda_sys_file_system_get_documents_path
Returns the documents directory path for EasyEDA Pro, enabling file system operations in client environments. Use when you need the base folder for storing or accessing user files.
Instructions
sys_FileSystem.getDocumentsPath() -> Promise
获取文档目录路径
remarks: 返回的路径中,结尾不包含斜杠 /(或反斜杠 \)
注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 throw Error
注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 throw Error
returns: 文档目录路径
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |