website/node_modules/fs-extra/docs/move-sync.md

moveSync(src, dest, [options])

Moves a file or directory, even across devices.

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/existed/somedir', { overwrite: true })


JohnCoene/chirp documentation built on May 25, 2021, 6:33 p.m.