Synchronous version of move. Moves a file or directory from one location to another.
move
The source path.
The destination path.
Optional
Optional move options.
A VoidIOResult indicating success or failure.
VoidIOResult
move for the async version.
1.8.0
moveSync('/old/path/file.txt', '/new/path/file.txt') .inspect(() => console.log('File moved')); Copy
moveSync('/old/path/file.txt', '/new/path/file.txt') .inspect(() => console.log('File moved'));
Synchronous version of
move. Moves a file or directory from one location to another.