tencent cloud

Smart Media Hosting

Retrieving Directory Information

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

Introduction

This document provides an API overview and SDK sample code for viewing directories or albums.
API
Operation Description
View directories or albums

View Directory or Album

Feature Overview

View directories or album info.

Example Code

//target folder
val targetDir = Directory()

try {
val directoryInfo: DirectoryInfo = smh.getDirectoryInfo(
dir = targetDir
)
} catch (e: Exception) {
e.printStackTrace()
}


Help and Support

Was this page helpful?

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

Feedback