Skip to content

格式

typescript
Directory.IsEmpty(path)

所属类: Directory

描述

判断指定路径是否为空。

因为是操作目录的类,所以传文件名会返回假。

参数

参数名类型描述
pathstring指定路径

返回值

类型描述
boolean是否为空

代码示例