Filesystem.mv()

Move file or directory located at source path to the destination path.

Usage

Hover over inputs/exits for more info.

var Filesystem = require('machinepack-fs');


// Move file or directory located at source path to the destination path.

Filesystem.mv({

source: '/Users/mikermcneil/.tmp/foo',

destination: '/Users/mikermcneil/.tmp/bar',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// No file or folder could be found at the provided souce path.

doesNotExist: function () {

 

},

// OK.

success: function () {

 

},

});

Inputs

source required

'/Users/mikermcneil/.tmp/foo'
destination required

'/Users/mikermcneil/.tmp/bar'

Exits

error

An unexpected error occurred.

doesNotExist

No file or folder could be found at the provided souce path.

success

OK.