harmony 鸿蒙oh_environment.h

  • 2025-06-12
  • 浏览 (3)

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.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Core File Kit

harmony 鸿蒙Environment

harmony 鸿蒙FileIO

harmony 鸿蒙FileShare_PolicyErrorResult

harmony 鸿蒙FileShare_PolicyInfo

harmony 鸿蒙error_code.h

harmony 鸿蒙File Management Error Codes

harmony 鸿蒙FileShare

harmony 鸿蒙FileUri

harmony 鸿蒙@ohos.application.BackupExtensionAbility (Backup and Restore Extension Capability) (System API)

0  赞