writeFile

abstract fun writeFile(uri: Uri, content: Uint8Array<*>, options: FileSystemProvider.WriteFileOptions): PromiseLike<Void?>?(source)

Write data to a file, replacing its entire contents.

Parameters

uri

The uri of the file.

content

The new content of the file.

options

Defines if missing files should or must be created.

Throws

{@linkcode FileSystemError.NoPermissions NoPermissions} when permissions aren't sufficient.

Online Documentation