1# raw_dir.h 2 3 4## Overview 5 6Provides APIs for operating the **rawfile** directory, including traversing and closing the **rawfile** directory. 7 8 **System capability**: SystemCapability.Global.ResourceManager 9 10 **Library**: librawfile.z.so 11 12**Since**: 8 13 14**Related module**: [Rawfile](rawfile.md) 15 16 17## Summary 18 19 20### Types 21 22| Name| Description| 23| -------- | -------- | 24| typedef struct [RawDir](rawfile.md#rawdir)[RawDir](rawfile.md#rawdir) | Provides access to the **rawfile** directory. | 25 26 27### Functions 28 29| Name| Description| 30| -------- | -------- | 31| const char \* [OH_ResourceManager_GetRawFileName](rawfile.md#oh_resourcemanager_getrawfilename) ([RawDir](rawfile.md#rawdir) \*rawDir, int index) | Obtains the name of a file in **rawfile** based on the index. | 32| int [OH_ResourceManager_GetRawFileCount](rawfile.md#oh_resourcemanager_getrawfilecount) ([RawDir](rawfile.md#rawdir) \*rawDir) | Obtains the number of files in the [RawDir](rawfile.md#rawdir) directory. | 33| void [OH_ResourceManager_CloseRawDir](rawfile.md#oh_resourcemanager_closerawdir) ([RawDir](rawfile.md#rawdir) \*rawDir) | Closes a [RawDir](rawfile.md#rawdir) and releases all associated resources. | 34