mirror of
https://github.com/jprichardson/node-fs-extra.git
synced 2026-01-18 16:13:55 +00:00
* improve docs * Update docs/ensureSymlink-sync.md Co-authored-by: Ryan Zimmerman <17342435+RyanZim@users.noreply.github.com> * Update docs/ensureSymlink.md Co-authored-by: Ryan Zimmerman <17342435+RyanZim@users.noreply.github.com> * add Error type to docs Co-authored-by: Ryan Zimmerman <17342435+RyanZim@users.noreply.github.com>
509 B
509 B
moveSync(src, dest[, options])
Moves a file or directory, even across devices.
src<String>dest<String>options<Object>overwrite<boolean>: overwrite existing file or directory, default isfalse.
Example:
const fs = require('fs-extra')
fs.moveSync('/tmp/somefile', '/tmp/does/not/exist/yet/somefile')
Using overwrite option
const fs = require('fs-extra')
fs.moveSync('/tmp/somedir', '/tmp/may/already/exist/somedir', { overwrite: true })