LocalVfsNative

expect open class LocalVfsNative(val async: Boolean = true) : LocalVfsNativeBase

Constructors

Link copied to clipboard
expect constructor(async: Boolean = true)

Properties

Link copied to clipboard
val async: Boolean = true
val async: Boolean = true
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun chmod(path: String, mode: Vfs.UnixPermissions)
open suspend override fun chmod(path: String, mode: Vfs.UnixPermissions)
Link copied to clipboard
open suspend override fun close()
open suspend override fun close()
Link copied to clipboard
fun createExistsStat(path: String, isDirectory: Boolean, size: Long, device: Long, inode: Long, mode: Int, owner: String, group: String, createTime: DateTime, modifiedTime: DateTime, lastAccessTime: DateTime, extraInfo: Any?, id: String?, cache: Boolean): VfsStat
fun createExistsStat(path: String, isDirectory: Boolean, size: Long, device: Long, inode: Long, mode: Int, owner: String, group: String, createTime: DateTime, modifiedTime: DateTime, lastAccessTime: DateTime, extraInfo: Any?, id: String?, cache: Boolean): VfsStat
Link copied to clipboard
fun createNonExistsStat(path: String, extraInfo: Any?, cache: Boolean): VfsStat
fun createNonExistsStat(path: String, extraInfo: Any?, cache: Boolean): VfsStat
Link copied to clipboard
open suspend override fun delete(path: String): Boolean
open suspend override fun delete(path: String): Boolean
Link copied to clipboard
inline suspend fun <R> doIo(crossinline func: () -> R): R
inline suspend fun <R> doIo(crossinline func: () -> R): R
Link copied to clipboard
suspend fun exec(path: String, cmdAndArgs: List<String>, handler: VfsProcessHandler): Int
suspend fun exec(path: String, cmdAndArgs: List<String>, handler: VfsProcessHandler): Int
open suspend override fun exec(path: String, cmdAndArgs: List<String>, env: Map<String, String>, handler: VfsProcessHandler): Int
open suspend override fun exec(path: String, cmdAndArgs: List<String>, env: Map<String, String>, handler: VfsProcessHandler): Int
Link copied to clipboard
fun file(path: String): VfsFile
fun file(path: String): VfsFile
Link copied to clipboard
operator fun get(path: String): VfsFile
operator fun get(path: String): VfsFile
Link copied to clipboard
inline fun <T> Iterable<Vfs.Attribute>.get(): T?
inline fun <T> Iterable<Vfs.Attribute>.get(): T?
Link copied to clipboard
open fun getAbsolutePath(path: String): String
open fun getAbsolutePath(path: String): String
Link copied to clipboard
open suspend override fun getAttributes(path: String): List<Vfs.Attribute>
open suspend override fun getAttributes(path: String): List<Vfs.Attribute>
Link copied to clipboard
open fun getKind(value: Any?): Vfs.FileKind
open fun getKind(value: Any?): Vfs.FileKind
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun listFlow(path: String): Flow<VfsFile>
open suspend override fun listFlow(path: String): Flow<VfsFile>
Link copied to clipboard
suspend fun listSimple(path: String): List<VfsFile>
suspend fun listSimple(path: String): List<VfsFile>
Link copied to clipboard
open suspend override fun mkdir(path: String, attributes: List<Vfs.Attribute>): Boolean
open suspend override fun mkdir(path: String, attributes: List<Vfs.Attribute>): Boolean
Link copied to clipboard
open suspend fun mkdirs(path: String, attributes: List<Vfs.Attribute>): Boolean
open suspend fun mkdirs(path: String, attributes: List<Vfs.Attribute>): Boolean
Link copied to clipboard
open suspend override fun open(path: String, mode: VfsOpenMode): AsyncStream
open suspend override fun open(path: String, mode: VfsOpenMode): AsyncStream
Link copied to clipboard
open suspend fun openInputStream(path: String): AsyncInputStream
open suspend fun openInputStream(path: String): AsyncInputStream
Link copied to clipboard
open suspend fun put(path: String, content: AsyncInputStream, attributes: List<Vfs.Attribute>): Long
open suspend fun put(path: String, content: AsyncInputStream, attributes: List<Vfs.Attribute>): Long
suspend fun put(path: String, content: ByteArray, attributes: List<Vfs.Attribute>): Long
suspend fun put(path: String, content: ByteArray, attributes: List<Vfs.Attribute>): Long
Link copied to clipboard
suspend fun readChunk(path: String, offset: Long, size: Int): ByteArray
suspend fun readChunk(path: String, offset: Long, size: Int): ByteArray
Link copied to clipboard
open suspend override fun readRange(path: String, range: LongRange): ByteArray
open suspend override fun readRange(path: String, range: LongRange): ByteArray
Link copied to clipboard
open suspend override fun rename(src: String, dst: String): Boolean
open suspend override fun rename(src: String, dst: String): Boolean
Link copied to clipboard
fun resolve(path: String): String
fun resolve(path: String): String
Link copied to clipboard
open suspend override fun rmdir(path: String): Boolean
open suspend override fun rmdir(path: String): Boolean
Link copied to clipboard
open suspend fun setAttributes(path: String, attributes: List<Vfs.Attribute>)
open suspend fun setAttributes(path: String, attributes: List<Vfs.Attribute>)
Link copied to clipboard
open suspend override fun setSize(path: String, size: Long)
open suspend override fun setSize(path: String, size: Long)
Link copied to clipboard
open suspend override fun stat(path: String): VfsStat
open suspend override fun stat(path: String): VfsStat
Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
Link copied to clipboard
open suspend override fun touch(path: String, time: DateTime, atime: DateTime)
open suspend override fun touch(path: String, time: DateTime, atime: DateTime)
Link copied to clipboard
open suspend override fun watch(path: String, handler: (Vfs.FileEvent) -> Unit): Closeable
open suspend override fun watch(path: String, handler: (Vfs.FileEvent) -> Unit): Closeable
Link copied to clipboard
suspend fun writeChunk(path: String, data: ByteArray, offset: Long, resize: Boolean)
suspend fun writeChunk(path: String, data: ByteArray, offset: Long, resize: Boolean)