NodeFilesystemAPI
Node API: fs
(Node)
Functions
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
.
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.
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.
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.
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.
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.
Tests whether the file at the specified path exists; provides the results or an error to the callback.
Create a directory, asynchronously, specified by the provided path.
Create a directory, synchronously, specified by the provided path.
Reads the contents of a file at the specified path; provides the results or an error to the callback. This variant accepts a polyglot Value.
Reads the contents of a file at the specified path and returns the results synchronously. This variant accepts a plain Value.
Writes the contents of a file at the specified path; provides the results or an error to the callback. This variant accepts a polyglot Value.
Writes the contents of a file at the specified path; provides the results or an error to the callback. This variant accepts a polyglot Value.
Writes the contents of a file at the specified path synchronously; throws if an error prevents the file from being written. This variant accepts a ByteArray.
Writes the contents of a file at the specified path synchronously; throws if an error prevents the file from being written. This variant accepts a String.