Skip to content

FileManager.moveDirectory

Kerri Shotts edited this page Oct 26, 2013 · 1 revision

(part of FileManager)

Parameters:

  • source - an absolute or relative path to the source directory
  • target - an absolute or relative path to the parent directory
  • newName - the new name (optional)

Returns: Promise, resolving to the new file

ASYNCHRONOUS

Moves the directory at source to the target directory, with a newName, if specified. If newName is not specified, the directory retains its original name. The move is recursive.

Usage

aFileManager.moveDirectory ( "/path/to/directory", "/a/new/path", "aNewName" )
            .then ( ... )
            .catch ( function ( e ) { console.log ( e ); }
            .done ();
Clone this wiki locally