📅  最后修改于: 2022-03-11 15:01:11.395000             🧑  作者: Mango
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!")
})