FoldersTrait
trait FoldersTrait
Enables you to manage the folders in your cloud.
Learn more: Folders method - Admin API
Properties
ApiClient | $apiClient | Defined in AdminApi class. |
Methods
rootFolders(array $options = [])
Lists all root folders.
subFolders(string $ofFolderPath, array $options = [])
Lists sub-folders.
createFolder(string $path)
Creates a new empty folder.
renameFolder(string $fromPath, string $toPath)
Renames folder.
deleteFolder(string $path)
Deletes an empty folder.
Details
ApiResponse
rootFolders(array $options = [])
Lists all root folders.
ApiResponse
subFolders(string $ofFolderPath, array $options = [])
Lists sub-folders.
Returns the name and path of all the sub-folders of a specified parent folder. Limited to 2000 results.
ApiResponse
createFolder(string $path)
Creates a new empty folder.
ApiResponse
renameFolder(string $fromPath, string $toPath)
Renames folder.
ApiResponse
deleteFolder(string $path)
Deletes an empty folder.
The specified folder cannot contain any assets, but can have empty descendant sub-folders.