oh_environment.h
Overview
Defines the native APIs used to obtain the sandbox paths of the user files.
Library: libohenvironment.so
System capability: SystemCapability.FileManagement.File.Environment.FolderObtain
Since: 12
Related module: Environment
Summary
Functions
| Name | Description |
|---|---|
| FileManagement_ErrCode OH_Environment_GetUserDownloadDir (char **result) | Obtains the sandbox path of the Download root directory. This function is available only for 2-in-1 devices. |
| FileManagement_ErrCode OH_Environment_GetUserDesktopDir (char **result) | Obtains the sandbox path of the Desktop root directory. This function is available only for 2-in-1 devices. |
| FileManagement_ErrCode OH_Environment_GetUserDocumentDir (char **result) | Obtains the sandbox path of the Documents root directory. This function is available only for 2-in-1 devices. |