WritableFilesystemPromiseAPI
Node API: fs/promises
(Writable)
Inheritors
Functions
Link copied to clipboard
Asynchronously copies a file.
Asynchronously copies a file using host-side types.
Link copied to clipboard
Asynchronously creates a directory.
Link copied to clipboard
abstract fun writeFile(path: Path, data: StringOrBuffer, options: WriteFileOptions? = null): JsPromise<Unit>
Asynchronously writes data to a file, replacing the file if it already exists. data can be a string, a buffer, an AsyncIterable
, or an Iterable
object. The promise is fulfilled with no arguments upon success.