fileUri
Overview
The FileUri module provides APIs for manipulating file Uniform Resource Identifiers (URIs).
It supports conversion between file URIs and paths, and verifies the validity of file URIs.
It is mainly used to verify the URI format and convert URIs. When files are shared between applications, the application sandbox path is converted into a URI based on specific rules.
You must ensure that all input parameters of the API are valid. The converted URI will be output regardless of whether it exists or not.
System capability: SystemCapability.FileManagement.AppFileService
Since: 12
Files
| Name | Description |
|---|---|
| oh_file_uri.h | Provides APIs for URI operations, including performing URI-path conversion, obtaining directory URIs, and verifying URIs. |
你可能感兴趣的鸿蒙文章
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