kvision / pl.treksoft.kvision.cordova / DirectoryEntrySync

DirectoryEntrySync

external interface DirectoryEntrySync : EntrySync

Inherited Properties

filesystem

abstract var filesystem: FileSystemSync

fullPath

abstract var fullPath: String

isDirectory

abstract var isDirectory: Boolean

isFile

abstract var isFile: Boolean

name

abstract var name: String

Functions

createReader

abstract fun createReader(): DirectoryReaderSync

getDirectory

abstract fun getDirectory(path: String, options: Flags? = definedExternally): DirectoryEntrySync

getFile

abstract fun getFile(path: String, options: Flags? = definedExternally): FileEntrySync

removeRecursively

abstract fun removeRecursively(): Unit

Inherited Functions

copyTo

abstract fun copyTo(parent: DirectoryEntrySync, newName: String? = definedExternally): EntrySync

getMetadata

abstract fun getMetadata(): Metadata

getParent

abstract fun getParent(): DirectoryEntrySync

moveTo

abstract fun moveTo(parent: DirectoryEntrySync, newName: String? = definedExternally): EntrySync

remove

abstract fun remove(): Unit

toURL

abstract fun toURL(): String

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.