# move(src, dest, [options], callback) Moves a file or directory, even across devices. - `src` `` - `dest` `` - `options` `` - `overwrite` ``: overwrite existing file or directory, default is `false`. - `callback` `` ## Example: ```js 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!') }) ``` **Using `overwrite` option** ```js const fs = require('fs-extra') fs.move('/tmp/somedir', '/tmp/may/already/existed/somedir', { overwrite: true }, err => { if (err) return console.error(err) console.log('success!') }) ```