1# oh_fileio.h 2 3 4## Overview 5 6Defines the native APIs for basic file operations. 7 8**Library**: **libohfileio.so** 9 10**System capability**: SystemCapability.FileManagement.File.FileIO 11 12**Since**: 12 13 14**Related module**: [FileIO](_file_i_o.md) 15 16 17## Summary 18 19 20### Types 21 22| Name| Description| 23| -------- | -------- | 24| typedef enum [FileIO_FileLocation](_file_i_o.md#fileio_filelocation) [FileIO_FileLocation](_file_i_o.md#fileio_filelocation) | Defines an enum for file locations.| 25 26 27### Enums 28 29| Name| Description| 30| -------- | -------- | 31| [FileIO_FileLocation](_file_i_o.md#fileio_filelocation) {<br>LOCAL = 1,<br>CLOUD = 2,<br>LOCAL_AND_CLOUD = 3<br>} | Enumerates the file locations.| 32 33 34### Functions 35 36| API| Description| 37| -------- | -------- | 38| [FileManagement_ErrCode](_file_i_o.md#filemanagement_errcode) [OH_FileIO_GetFileLocation](_file_i_o.md#oh_fileio_getfilelocation) (char \*uri, int uriLength, [FileIO_FileLocation](_file_i_o.md#fileio_filelocation) \*location) | Obtains the location of a file.| 39