Javascript File type

From FreeSWITCH Wiki
Jump to: navigation, search

Contents

Description

Returns the type (ie text, utf, unicode, etc) of the file

Synopsis

type

Example

var fd = new File("/tmp/blah");
fd.open("read");
console_log(fd.type+"\n");

See Also