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
FileNotFound
FileSystemError.FileNotFound when the parent of uri doesn't exist and create is set, e.g. no mkdirp-logic required.
FileExists
FileSystemError.FileExists when uri already exists, create is set but overwrite is not set.
NoPermissions
FileSystemError.NoPermissions when permissions aren't sufficient.