Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
interfaces/ | 12-May-2024 | - | 1,498 | 1,053 | ||
services/remote_file_share/src/ | 12-May-2024 | - | 225 | 182 | ||
test/ | 12-May-2024 | - | 555 | 374 | ||
BUILD.gn | D | 12-May-2024 | 938 | 23 | 20 | |
LICENSE | D | 12-May-2024 | 9.9 KiB | 177 | 150 | |
OAT.xml | D | 12-May-2024 | 3.7 KiB | 62 | 10 | |
README.md | D | 12-May-2024 | 960 | 37 | 25 | |
README_ZH.md | D | 12-May-2024 | 1.5 KiB | 40 | 32 | |
bundle.json | D | 12-May-2024 | 2.3 KiB | 61 | 60 |
README.md
1# app_file_service 2 3#### Description 4{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} 5 6#### Software Architecture 7Software architecture description 8 9#### Installation 10 111. xxxx 122. xxxx 133. xxxx 14 15#### Instructions 16 171. xxxx 182. xxxx 193. xxxx 20 21#### Contribution 22 231. Fork the repository 242. Create Feat_xxx branch 253. Commit your code 264. Create Pull Request 27 28 29#### Gitee Feature 30 311. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md 322. Gitee blog [blog.gitee.com](https://blog.gitee.com) 333. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) 344. The most valuable open source project [GVP](https://gitee.com/gvp) 355. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) 366. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) 37
README_ZH.md
1# 应用文件服务 2 3## **简介** 4应用文件服务是为应用提供文件分享和管理能力的服务,包含应用间文件分享、跨设备同应用文件分享以及跨设备跨应用文件分享的能力。 5当前已具备基于分布式文件系统的跨设备同应用文件分享能力。 6 7## **目录** 8``` 9/foundation/filemanagement/app_file_service 10│── interfaces // 接口声明 11│ ├── innerkits // 对内接口声明 12│ └── kits // 对外接口声明 13``` 14 15## **说明** 16### 接口说明 17**表1** 应用文件服务接口说明 18| **接口名** | **说明** | 19| --- | --- | 20| createSharePath(fd: number, cid: string, callback: AsyncCallback\<string>): void <br> createSharePath(fd: number, cid: string): Promise\<string> | 将文件fd与设备cid传递给分布式文件系统,创建跨设备分享路径 | 21### 使用说明 22createSharePath接口为分享文件fd创建能够跨设备访问的分布式路径,异步返回创建结果,设备号cid用于指定分享设备。 23 24示例: 25``` 26import remotefileshare from '@ohos.remotefileshare' 27 28remotefileshare.createSharePath(fd, cid, function(err, path) { 29 // callback 30}); 31 32remotefileshare.createSharePath(fd, cid).then(function(path) { 33 // promise 34}); 35``` 36 37## **相关仓** 38 39- [Linux内核5.10](https://gitee.com/openharmony/kernel_linux_5.10) 40- [文件访问接口](https://gitee.com/zkx48/filemanagement_file_api)