WasiFileSystem

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun appendBytes(path: String, bytes: ByteArray, createParentDirectories: Boolean = true)
Link copied to clipboard
fun appendText(path: String, text: String, charsetName: String = DEFAULT_CHARSET, createParentDirectories: Boolean = true)
Link copied to clipboard
Link copied to clipboard
fun delete(path: String, recursive: Boolean = false)
Link copied to clipboard
fun exists(path: String): Boolean
Link copied to clipboard
fun hostPath(path: String): String
Link copied to clipboard
fun list(path: String = "."): List<WasiFileEntry>
Link copied to clipboard
Link copied to clipboard
fun readByteChunks(path: String, chunkSize: Int = DEFAULT_CHUNK_SIZE): Flow<ByteArray>
Link copied to clipboard
Link copied to clipboard
fun readText(path: String, charsetName: String = DEFAULT_CHARSET): String
Link copied to clipboard
fun WasiFileSystem.readWitByteStream(path: String, wasi: WasiPreview3, chunkSize: Int = WasiFileSystem.DEFAULT_CHUNK_SIZE): WitStream<UByte>
Link copied to clipboard
suspend fun writeByteChunks(path: String, chunks: Flow<ByteArray>, append: Boolean = false, createParentDirectories: Boolean = true)
Link copied to clipboard
fun writeBytes(path: String, bytes: ByteArray, createParentDirectories: Boolean = true)
Link copied to clipboard
fun writeText(path: String, text: String, charsetName: String = DEFAULT_CHARSET, createParentDirectories: Boolean = true)
Link copied to clipboard
suspend fun WasiFileSystem.writeWitByteStream(path: String, stream: WitStream<UByte>, wasi: WasiPreview3, createParentDirectories: Boolean = true, append: Boolean = false)