kvision / pl.treksoft.kvision.cordova / FileEntrySync

FileEntrySync

external interface FileEntrySync : 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

createWriter

abstract fun createWriter(): FileWriterSync

file

abstract fun file(): File

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.