Skip to content

函数: isFileExist() ​

isFileExist(fileName, callback): any

检测文件是否存在

参数 ​

fileName ​

string

文件名

callback ​

any

回调函数 返回是否存在

返回 ​

any

示例 ​

ts
LM.isFileExist("test.txt",function(isExist){
 console.log(isExist);
})