fs: add access() and accessSync()
authorcjihrig <cjihrig@gmail.com>
Mon, 15 Dec 2014 15:44:46 +0000 (10:44 -0500)
committercjihrig <cjihrig@gmail.com>
Mon, 15 Dec 2014 17:05:49 +0000 (12:05 -0500)
commit165b70f146e163b82a09bb869463708516c08cf6
treeb7e91ef9f5984838dd5bbaedec9cf24012e4fb3a
parent524882faca28955aa5ef2a6194aab3895b0498b6
fs: add access() and accessSync()

fs.exists() and fs.existsSync() do not follow the typical
error first callback convention. access() and accessSync()
are added as alternatives in this commit.

Fixes: https://github.com/joyent/node/pull/8714
PR-URL: https://github.com/iojs/io.js/pull/114
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Domenic Denicola <domenic@domenicdenicola.com>
doc/api/fs.markdown
lib/fs.js
src/node_constants.cc
src/node_file.cc
test/simple/test-fs-access.js [new file with mode: 0644]