有奖捉虫:云通信与企业服务文档专题,速来> HOT

简介

本文档提供关于检查文件状态的 API 概览以及 SDK 示例代码。
API
操作描述
检查文件状态

检查文件状态

功能说明

用于检查文件状态。

示例代码

//目标文件名
val targetName = "targetName"
//目标文件夹
val targetDir = Directory()

try {
val headFileContent: HeadFileContent = smh.headFile(
name = targetName,
dir = targetDir
)
} catch (e: Exception) {
e.printStackTrace()
}