Moves a file or directory, even across devices.
- overwrite (boolean): overwrite existing file or directory, default is
false
var fs = require('fs-extra')
fs.move('/tmp/somefile', '/tmp/does/not/exist/yet/somefile', function (err) {
if (err) return console.error(err)
console.log("success!")
})