kvision / pl.treksoft.kvision.cordova / Entry

Entry

(js) interface Entry

Properties

(js)

filesystem

abstract var filesystem: FileSystem
(js)

fullPath

abstract var fullPath: String
(js)

isDirectory

abstract var isDirectory: Boolean
(js)

isFile

abstract var isFile: Boolean
(js)

name

abstract var name: String

Functions

(js)

copyTo

abstract fun copyTo(parent: DirectoryEntry, newName: String? = definedExternally, successCallback: EntryCallback? = definedExternally, errorCallback: ErrorCallback? = definedExternally): Unit
(js)

getMetadata

abstract fun getMetadata(successCallback: MetadataCallback, errorCallback: ErrorCallback? = definedExternally): Unit
(js)

getParent

abstract fun getParent(successCallback: DirectoryEntryCallback, errorCallback: ErrorCallback? = definedExternally): Unit
(js)

moveTo

abstract fun moveTo(parent: DirectoryEntry, newName: String? = definedExternally, successCallback: EntryCallback? = definedExternally, errorCallback: ErrorCallback? = definedExternally): Unit
(js)

remove

abstract fun remove(successCallback: VoidCallback, errorCallback: ErrorCallback? = definedExternally): Unit
(js)

toInternalURL

abstract fun toInternalURL(): String
(js)

toURL

abstract fun toURL(): String

Extension Functions

(js)

copyTo

Copy given file or directory to a new location.

suspend fun Entry.copyTo(parent: DirectoryEntry, newName: String? = null): Result<Entry, FileException>
(js)

getMetadata

Get file or directory metadata.

suspend fun Entry.getMetadata(): Result<Metadata, FileException>
(js)

getParent

Get file or directory parent directory entry.

suspend fun Entry.getParent(): Result<DirectoryEntry, FileException>
(js)

moveTo

Move given file or directory to a new location.

suspend fun Entry.moveTo(parent: DirectoryEntry, newName: String? = null): Result<Entry, FileException>
(js)

remove

Remove given file or directory.

suspend fun Entry.remove(): Result<Entry, FileException>

Inheritors

(js)

DirectoryEntry

interface DirectoryEntry : Entry
(js)

FileEntry

interface FileEntry : Entry