Javascript File isDirectory
From FreeSWITCH Wiki
Contents |
[edit]
Description
Returns a boolean of whether the current file is a directory or not
[edit]
Synopsis
isDirectory
[edit]
Example
var fd = new File("/tmp/blah");
if (fd.isDirectory) {
console_log(fd.name) + "is a directory\n");
} else {
console_log(fd.name) + "is not a directory\n");
}
[edit]
