Synchronous version of copy. Copies a file or directory from one location to another.
copy
The source path.
The destination path.
Optional
Optional copy options.
A VoidIOResult indicating success or failure.
VoidIOResult
copy for the async version.
1.7.0
// Copy a filecopySync('/src/file.txt', '/dest/file.txt');// Copy without overwritingcopySync('/src', '/dest', { overwrite: false }); Copy
// Copy a filecopySync('/src/file.txt', '/dest/file.txt');// Copy without overwritingcopySync('/src', '/dest', { overwrite: false });
Synchronous version of
copy. Copies a file or directory from one location to another.