accessSync
Method: fs.accessSync
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
and operates synchronously, raising an exception for failures.
Parameters
The path to the file to test access for.
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 and operates synchronously, raising an exception for failures.
Parameters
The path to the file to test access for.
The mode to test for access.
Method: fs.accessSync
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 that operates synchronously.
Parameters
The path to the file to read.
The mode to test for access.