DenoLocalVfs

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open suspend fun chmod(path: String, mode: Vfs.UnixPermissions)

Change Unix Permissions for path to mode

Link copied to clipboard
open suspend override fun close()
Link copied to clipboard
fun createExistsStat(path: String, isDirectory: Boolean, size: Long, device: Long = -1, inode: Long = -1, mode: Int = 511, owner: String = "nobody", group: String = "nobody", createTime: DateTime = DateTime.EPOCH, modifiedTime: DateTime = DateTime.EPOCH, lastAccessTime: DateTime = modifiedTime, extraInfo: Any? = null, id: String? = null, cache: Boolean = false): VfsStat
Link copied to clipboard
fun createNonExistsStat(path: String, extraInfo: Any? = null, cache: Boolean = false): VfsStat
Link copied to clipboard
open suspend override fun delete(path: String): Boolean
Link copied to clipboard
suspend fun exec(path: String, cmdAndArgs: List<String>, handler: VfsProcessHandler = VfsProcessHandler()): Int
open suspend fun exec(path: String, cmdAndArgs: List<String>, env: Map<String, String>, handler: VfsProcessHandler = VfsProcessHandler()): Int
Link copied to clipboard
fun file(path: String): VfsFile
Link copied to clipboard
operator fun get(path: String): VfsFile
Link copied to clipboard
inline fun <T> Iterable<Vfs.Attribute>.get(): T?
Link copied to clipboard
open fun getAbsolutePath(path: String): String
Link copied to clipboard
open suspend fun getAttributes(path: String): List<Vfs.Attribute>
Link copied to clipboard
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>
Link copied to clipboard
suspend fun listSimple(path: String): List<VfsFile>
Link copied to clipboard
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
Link copied to clipboard
open suspend override fun open(path: String, mode: VfsOpenMode): AsyncStream
Link copied to clipboard
open suspend fun openInputStream(path: String): AsyncInputStream
Link copied to clipboard
open suspend fun put(path: String, content: AsyncInputStream, attributes: List<Vfs.Attribute> = listOf()): Long
suspend fun put(path: String, content: ByteArray, attributes: List<Vfs.Attribute> = listOf()): Long
Link copied to clipboard
suspend fun readChunk(path: String, offset: Long, size: Int): ByteArray
Link copied to clipboard
open suspend fun readRange(path: String, range: LongRange): ByteArray
Link copied to clipboard
open suspend override fun rename(src: String, dst: String): Boolean
Link copied to clipboard
open suspend fun rmdir(path: String): Boolean
Link copied to clipboard
open suspend fun setAttributes(path: String, attributes: List<Vfs.Attribute>)
Link copied to clipboard
open suspend fun setSize(path: String, size: Long)
Link copied to clipboard
open suspend override fun stat(path: String): VfsStat
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open suspend fun touch(path: String, time: DateTime, atime: DateTime)
Link copied to clipboard
open suspend fun watch(path: String, handler: (Vfs.FileEvent) -> Unit): Closeable
Link copied to clipboard
suspend fun writeChunk(path: String, data: ByteArray, offset: Long, resize: Boolean)