Lines Matching refs:access
4 // This tests that fs.access and fs.accessSync works as expected
12 common.skip('IBMi has a different access permission mechanism');
35 // On non-Windows supported platforms, fs.access(readOnlyFile, W_OK, ...)
40 // non-superuser user so that the test that checks for write access to a
74 fs.access(__filename, common.mustCall(function(...args) {
77 fs.promises.access(__filename)
80 fs.access(__filename, fs.R_OK, common.mustCall(function(...args) {
83 fs.promises.access(__filename, fs.R_OK)
86 fs.access(readOnlyFile, fs.R_OK, common.mustCall(function(...args) {
89 fs.promises.access(readOnlyFile, fs.R_OK)
99 fs.access(doesNotExist, common.mustCall(expectedError));
100 fs.promises.access(doesNotExist)
115 fs.access(readOnlyFile, fs.W_OK, common.mustCall(expectedError));
116 fs.promises.access(readOnlyFile, fs.W_OK)
128 () => { fs.access(100, fs.F_OK, common.mustNotCall()); },
132 fs.promises.access(100, fs.F_OK)
139 fs.access(__filename, fs.F_OK);
148 fs.access(__filename, fs.F_OK, common.mustNotMutateObjectDeep({}));
155 // Regular access should not throw.
170 () => fs.access(readWriteFile, mode, common.mustNotCall()),
192 () => fs.access(readWriteFile, mode, common.mustNotCall()),
212 `ENOENT: no such file or directory, access '${doesNotExist}'`
215 assert.strictEqual(err.syscall, 'access');
228 `ENOENT: no such file or directory, access '${doesNotExist}'`
231 assert.strictEqual(err.syscall, 'access');