Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Commit a52f169

Browse files
authored
Merge pull request #15 from jwhitbeck/master
Add missing copyFile and copyFileSync functions
2 parents 165bb98 + 183790e commit a52f169

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

fs.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,21 @@ fs.writeFile = function(filename, data, encodingOrOptions, callback) {};
438438
*/
439439
fs.writeFileSync = function(filename, data, encodingOrOptions) {};
440440

441+
/**
442+
* @param {string} src
443+
* @param {string} dest
444+
* @param {number|function(...)=} flags
445+
* @param {function(...)=} callback
446+
*/
447+
fs.copyFile = function(src, dest, flags, callback) {};
448+
449+
/**
450+
* @param {string} src
451+
* @param {string} dest
452+
* @param {number=} flags
453+
*/
454+
fs.copyFileSync = function(src, dest, flags) {};
455+
441456
/**
442457
* @param {string} filename
443458
* @param {*} data

0 commit comments

Comments
 (0)