Create a Folder Instance

You can create an instance for a specific folder in the File Store using the getFolderInstance() method, and enable the methods defined in this class to access the instance object. You must pass the Folder ID of that folder to the getFolderInstance() method, as shown in the code syntax below.

The <FILE_STORE_INSTANCE> used in the code below is the instance defined in the File Store Instance page.

    
copy
<FILE_STORE_INSTANCE>.getFolderInstance( int id )

Parameters:

  • id: The unique Folder ID of the folder that the instance object must be returned for

A sample code snippet is shown below:

    
copy
ZCatalystFolder folder = ZCatalystApp.getInstance() .getFileStoreInstance() .getFolderInstance(2823000000006561);

Last Updated 2024-09-12 18:16:13 +0530 +0530