检查文件状态

最近更新时间:2024-10-15 20:05:41

我的收藏

简介

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

检查文件状态

功能说明

用于检查文件状态。

示例代码

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

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