Javascript File canRead

From FreeSWITCH Wiki

Jump to: navigation, search

Contents

Description

Returns a boolean whether we can read this file or not

Synopsis

canRead

Example

var fd = new File("/tmp/blah");
if (fd.canRead) {
  console_log(fd.name) + "can be read\n");
} else {
  console_log(fd.name) + "can not be read\n");
}

See Also

Javascript

Personal tools
Community