Javascript File canAppend

From FreeSWITCH Wiki
Jump to: navigation, search

Contents

Description

Returns a boolean whether or not we can append to this file

Synopsis

canAppend

Example

var fd = new File("/tmp/blah");
fd.open("write,append");
if (fd.canAppend) {
  console_log(fd.name) + "can be appended to\n");
} else {
  console_log(fd.name) + "cannot be append to\n");
}

See Also