tencent cloud

Smart Media Hosting

Creating Folder

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-01-07 10:49:09

Introduction

This document provides an API overview about file renaming and SDK example code.
API
Operation Description
Create directory or album

SDK API Reference

For specific parameters and method descriptions of all SDK APIs, please see SDK API Reference.

Creating a Directory or Album

Feature Description

To create a directory or album.

Sample Code

QCloudSMHPutDirectoryRequest *req = [QCloudSMHPutDirectoryRequest new];
req.dirPath = @"dirname";
// Media Library ID, required parameter
req.libraryId = @"libraryId";
// Space ID, if the media library is in single-tenant mode, this parameter is fixed as a hyphen (-); if the media library is in multi-tenant mode, you must specify this parameter
req.spaceId = @"spaceId";

[req setFinishBlock:^(QCloudSMHContentInfo *contentInfo, NSError *_Nullable error) {

}];
[[QCloudSMHService defaultSMHService] putDirectory:req];


Ajuda e Suporte

Esta página foi útil?

comentários