mirror of
https://github.com/jprichardson/node-fs-extra.git
synced 2026-01-18 16:13:55 +00:00
374 B
374 B
move(src, dest, [options], callback)
Moves a file or directory, even across devices.
Options:
- overwrite (boolean): overwrite existing file or directory, default is
false
Example:
const fs = require('fs-extra')
fs.move('/tmp/somefile', '/tmp/does/not/exist/yet/somefile', err => {
if (err) return console.error(err)
console.log('success!')
})