tencent cloud

Smart Media Hosting

Creating Folder

PDF
Focus Mode
Font Size
Last updated: 2026-01-07 11:03:09

Introduction

This document provides an API overview about file renaming as well as SDK sample code.
API
Operation Description
Create a directory or album

Creating a Directory or Album

Feature Overview

Used for creating a directory or album.

Example Code

//target folder
val targetDir = Directory()
try {
val createDirectoryResult: CreateDirectoryResult = smh.createDirectory(
dir = targetDir
)
val creationTime = createDirectoryResult.creationTime
} catch (e: Exception) {
e.printStackTrace()
}


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback