exists 函数用于确定文件或文件夹是否存在。
exists
var tf = file.exists("myFile.txt"); var tf = file.exists("myFolder");
file. exists ( path )
Boolean
path
String