diff --git a/global/resource_management/include/raw_file_manager.h b/global/resource_management/include/raw_file_manager.h index 9003923aebfc22c6de6a31feb961c4fff088f06a..ca3fabae47ed4536a565057cbf303e007117313a 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 54f8c0a3559708965b3038bf41c1d766b059c5a7..e6abb742ea115ccff7dc3ab61801dfda59f1c416 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