From 375b8faaf40d98b791e634e8874e4a947b18007e Mon Sep 17 00:00:00 2001 From: fangyunzhong Date: Wed, 28 Feb 2024 18:02:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=88=A4=E6=96=AD=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fangyunzhong --- .../resource_management/include/raw_file_manager.h | 12 ++++++++++++ global/resource_management/librawfile.ndk.json | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/global/resource_management/include/raw_file_manager.h b/global/resource_management/include/raw_file_manager.h index 9003923ae..ca3fabae4 100644 --- a/global/resource_management/include/raw_file_manager.h +++ b/global/resource_management/include/raw_file_manager.h @@ -135,6 +135,18 @@ RawFile *OH_ResourceManager_OpenRawFile(const NativeResourceManager *mgr, const */ RawFile64 *OH_ResourceManager_OpenRawFile64(const NativeResourceManager *mgr, const char *fileName); +/** + * @brief Whether the rawfile resource is a directory or not. + * + * @param mgr Indicates the pointer to {@link NativeResourceManager} obtained by calling + * {@link OH_ResourceManager_InitNativeResourceManager}. + * @param path Indicates the rawfile resource relative path. + * @return Returns true means the file path is directory, else false. + * @since 12 + * @version 1.0 + */ +bool OH_ResourceManager_IsRawDir(const NativeResourceManager *mgr, const char *path); + #ifdef __cplusplus }; #endif diff --git a/global/resource_management/librawfile.ndk.json b/global/resource_management/librawfile.ndk.json index 54f8c0a35..e6abb742e 100644 --- a/global/resource_management/librawfile.ndk.json +++ b/global/resource_management/librawfile.ndk.json @@ -70,5 +70,9 @@ }, { "name": "OH_ResourceManager_ReleaseRawFileDescriptor64" + }, + { + "first_introduced": "12", + "name": "OH_ResourceManager_IsRawDir" } ] \ No newline at end of file -- Gitee