Create a Folder Instance

Note: Catalyst now offers you a brand new object storage component called Stratus in Early Access mode. This component is a significant upgrade to the current Cloud Scale File Store component. You can find out more about the Stratus component here.

To use the Stratus component in the Early Access mode, email us at support@zohocatalyst.com.

You can create an instance for a specific folder in the Catalyst 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( id : Int64 ) -> ZCatalystFolder

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
let folderInstance = ZCatalystApp.shared.getFileStoreInstance().getFolderInstance(id : 3376000000427654) //Replace this with your Folder ID

Last Updated 2025-02-24 14:38:44 +0530 +0530

ON THIS PAGE
ACCESS THIS PAGE