CloudReadWriteAccess

interface CloudReadWriteAccess : CloudReadAccess

Provide read and write access to a cloud URI.

Functions

read
Link copied to clipboard
abstract suspend fun read(path: List<String>): ByteArray?
Read binary data from the given path, relative to the uri.
write
Link copied to clipboard
abstract suspend fun write(content: ByteArray, path: List<String>)
Write binary data to a cloud file with the given path.

Properties

uri
Link copied to clipboard
abstract val uri: URI
The root URI for the cloud access.

Extensions

write
Link copied to clipboard
suspend fun CloudReadWriteAccess.write(content: ByteArray, vararg path: String)
Write binary data to a cloud file with the given path.
writeString
Link copied to clipboard
suspend fun CloudReadWriteAccess.writeString(content: String, vararg path: String)
Write an UTF8 string to a cloud file with the given path.
suspend fun CloudReadWriteAccess.writeString(content: String, path: List<String>)
Write an UTF8 string to a cloud file with the given path.