Javascript File canReplace
From FreeSWITCH Wiki
Contents |
[edit]
Description
A boolean whether or not we can replace the contents in this file
[edit]
Synopsis
canReplace
[edit]
Example
var fd = new File("/tmp/blah");
fd.open("read,write,replace");
if (fd.canReplace) {
console_log(fd.name) + "can be overwritten\n");
} else {
console_log(fd.name) + "cannot be overwritten\n");
}
[edit]
