Javascript File renameTo

From FreeSWITCH Wiki
Jump to: navigation, search

Contents

Description

Renames a file name to some other name

Synopsis

renameTo(newName)
  • newName - the new name of the file

Example

var fd = new File("/tmp/blah");
fd.renameTo("/tmp/moo");

See Also