The absolute source path.
The absolute destination path.
Optionaloptions: MoveOptions
Optional move options.
Options for move.
Optionaloverwrite?: booleanWhether to overwrite the destination file if it already exists.
When false, the move is a no-op if the destination already exists
(mv -n style): both the destination and the source are left untouched.
A promise that resolves to an AsyncVoidIOResult indicating success or failure.
copy for copying instead of moving
Moves a file or directory from one location to another. Both source and destination must be of the same type (both files or both directories).
With
{ overwrite: false }the move followsmv -nsemantics: when the destination already exists the operation is a no-op, leaving both the destination and the source untouched. The source is only removed once the transfer has actually happened, so a skipped move can never destroy data.