Javascript File isFile

From FreeSWITCH Wiki
Jump to: navigation, search

Contents

Description

Returns a boolean whether this resource is a file or not

Synopsis

isFile

Example

var fd = new File("/tmp/blah");
if (fd.isFile) {
 console_log(fd.name) + "is a file\n");
} else {
  console_log(fd.name) + "is not a file\n");
}

See Also