copyFileSync
Method: fs.copyFileSync
Copies the contents at the provided src path to the provided dest path, using the given mode (if specified) as modifiers for the copy operation; default value for mode is 0
.
Parameters
src
The source path to copy from.
dest
The destination path to copy to.
mode
The mode to use for the copy operation.
Method: fs.copyFileSync
Copies the contents at the provided src path to the provided dest path, using the given mode (if specified) as modifiers for the copy operation; default value for mode is 0
.
This method operates synchronously.
Parameters
src
The source path to copy from.
dest
The destination path to copy to.
mode
The mode to use for the copy operation.
Method: fs.copyFileSync
Copies the contents at the provided src path to the provided dest path.
This method operates synchronously.
Parameters
src
The source path to copy from.
dest
The destination path to copy to.