fileUri
概述
文件统一资源标识符(File Uniform Resource Identifier)。
支持fileuri与路径path的转换,和fileuri的有效性校验。
该类主要用于 URI 格式验证和 URI 转换处理。且uri用于应用间文件分享场景,将应用沙箱路径按照固定关系转换为URI;
调用者需保证所有接口入参的有效性,接口按照固定规则转换输出结果,并不检查其是否存在。
系统能力: SystemCapability.FileManagement.AppFileService
起始版本: 12
文件汇总
| 名称 | 描述 |
|---|---|
| oh_file_uri.h | 提供uri和路径path之间的相互转换,目录uri获取,以及uri的有效性校验的方法。 |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 js-apis-file-environment-sys
openharmony 鸿蒙 js-apis-file-fs
openharmony 鸿蒙 capi-clouddisk-clouddisk-pathinfo
openharmony 鸿蒙 capi-clouddisk-clouddisk-changesresult
openharmony 鸿蒙 capi-clouddisk-clouddisk-syncfolder
openharmony 鸿蒙 js-apis-fileShare
openharmony 鸿蒙 js-apis-file-storage-statistics-sys