File.exists
From FreeSWITCH Wiki
(Redirected from Javascript File exists)
Contents |
[edit]
Description
Returns a boolean whether the file exists or not
[edit]
Synopsis
exists
[edit]
Example
var fd = new File("/tmp/blah");
if (fd.exists) {
console_log(fd.name) + "exists\n");
} else {
console_log(fd.name) + "does not exist\n");
}
[edit]
