access
Method: fs.access
Tests a user's permissions for the file at the specified path; provides the results or an error to the callback. This variant specifies the default mode of F_OK
.
Parameters
The path to the file to test access for.
The callback to provide the results or an error.
Method: fs.access
Tests a user's permissions for the file at the specified path; provides the results or an error to the callback. This variant accepts a mode.
Parameters
The path to the file to test access for.
The mode to test for access.
The callback to provide the results or an error.
Method: fs.access
Tests a user's permissions for the file at the specified path; provides the results or an error to the callback. This is a host-side variant.
Parameters
The path to the file to read.
The mode to test for access.
The callback to provide the results or an error.