Javascript File canWrite

From FreeSWITCH Wiki
Jump to: navigation, search

Contents

Description

Returns a boolean whether or not we can write to the file

Synopsis

canWrite

Example

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

See Also