1# oh_file_uri.h
2
3
4## Overview
5
6Provides APIs for URI operations, including performing URI-path conversion, obtaining a URI, and verifying a URI.
7
8**Library**: **libohfileuri.so**
9
10**Since**: 12
11
12**Related module**: [Fileuri](fileuri.md)
13
14
15## Summary
16
17
18### Functions
19
20| Name                                                                                                                                                                                                | Description                                             |
21|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------|
22| [FileManagement_ErrCode](_file_i_o.md#filemanagement_errcode) [OH_FileUri_GetUriFromPath](fileuri.md#oh_fileuri_geturifrompath) (const char \*path, unsigned int length, char \*\*result)          | Obtains the URI from a path.                              |
23| [FileManagement_ErrCode](_file_i_o.md#filemanagement_errcode) [OH_FileUri_GetPathFromUri](fileuri.md#oh_fileuri_getpathfromuri) (const char \*uri, unsigned int length, char \*\*result)  | Obtains the path from a URI.                              |
24| [FileManagement_ErrCode](_file_i_o.md#filemanagement_errcode) [OH_FileUri_GetFullDirectoryUri](fileuri.md#oh_fileuri_getfulldirectoryuri) (const char \*uri, unsigned int length, char \*\*result) | Obtains the URI of the directory, in which a URI is located. If the specified URI points to a file, the URI of the parent directory is returned. If the specified URI points to a folder, the URI of the folder is returned.|
25| bool [OH_FileUri_IsValidUri](fileuri.md#oh_fileuri_isvaliduri) (const char \*uri, unsigned int length)                                                                                             | Checks whether a URI is valid.                                  |
26| [FileManagement_ErrCode](_file_i_o.md#filemanagement_errcode) [OH_FileUri_GetFileName](fileuri.md#oh_fileuri_getfilename) (const char \*uri, unsigned int length, char \*\*result)                 | Obtains the file name from the given URI.                                  |
27