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

Commit

Permalink
Add missing copyFile and copyFileSync functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sean committed Nov 14, 2017
1 parent 165bb98 commit 183790e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,21 @@ fs.writeFile = function(filename, data, encodingOrOptions, callback) {};
*/
fs.writeFileSync = function(filename, data, encodingOrOptions) {};

/**
* @param {string} src
* @param {string} dest
* @param {number|function(...)=} flags
* @param {function(...)=} callback
*/
fs.copyFile = function(src, dest, flags, callback) {};

/**
* @param {string} src
* @param {string} dest
* @param {number=} flags
*/
fs.copyFileSync = function(src, dest, flags) {};

/**
* @param {string} filename
* @param {*} data
Expand Down

0 comments on commit 183790e

Please sign in to comment.