copyFile
Method: fs.copyFile
Asynchronously copies a file using host-side types.
Copies the contents at the provided src path to the provided dest path; the returned promise is resolved once the copy operation completes.
Return
Upon success, fulfills with undefined
; otherwise, rejects with an error.
Parameters
The source path to copy from.
The destination path to copy to.
Copy mode constant to apply.
Method: fs.copyFile
Asynchronously copies a file.
Copies the contents at the provided src path to the provided dest path; the returned promise is resolved once the copy operation completes.
Return
Upon success, fulfills with undefined
; otherwise, rejects with an error.
Parameters
The source path to copy from.
The destination path to copy to.
Method: fs.copyFile
Asynchronously copies a file.
Copies the contents at the provided src path to the provided dest path; the returned promise is resolved once the copy operation completes.
Return
Upon success, fulfills with undefined
; otherwise, rejects with an error.
Parameters
The source path to copy from.
The destination path to copy to.
The mode to use for the copy operation.