Move file or directory located at source path to the destination path.
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 () {
},
});
'/Users/mikermcneil/.tmp/foo'
'/Users/mikermcneil/.tmp/bar'
An unexpected error occurred.
No file or folder could be found at the provided souce path.
OK.