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

Commit 78cf988

Browse files
authored
Merge pull request #12 from kraag22/master
add missing functions fs.access, fs.accessSync
2 parents bc8a966 + 760bd29 commit 78cf988

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

fs.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,19 @@ fs.truncate = function(fd, len, callback) {};
5656
*/
5757
fs.truncateSync = function(fd, len) {};
5858

59+
/**
60+
* @param {string} path
61+
* @param {number=} mode
62+
* @param {function(...)=} callback
63+
*/
64+
fs.access = function(path, mode, callback) {};
65+
66+
/**
67+
* @param {string} path
68+
* @param {number=} mode
69+
*/
70+
fs.accessSync = function(path, mode) {};
71+
5972
/**
6073
* @param {string} path
6174
* @param {number} uid
@@ -454,7 +467,7 @@ fs.watchFile = function(filename, options, listener) {};
454467
fs.unwatchFile = function(filename, listener) {};
455468

456469
/**
457-
*
470+
*
458471
* @param {string} filename
459472
* @param {{persistent: boolean}|function(string, string)=} options
460473
* @param {function(string, string)=} listener

0 commit comments

Comments
 (0)