Skip to content

格式

typescript
File.Exists(path)

所属类: File

描述

判断指定的文件是否存在。

参数

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

返回值

类型描述
boolean是否存在

代码示例