From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- .../-directory-entry/index.html | 235 +++++++++++++++++++++ 1 file changed, 235 insertions(+) create mode 100644 api1/pl.treksoft.kvision.cordova/-directory-entry/index.html (limited to 'api1/pl.treksoft.kvision.cordova/-directory-entry/index.html') diff --git a/api1/pl.treksoft.kvision.cordova/-directory-entry/index.html b/api1/pl.treksoft.kvision.cordova/-directory-entry/index.html new file mode 100644 index 00000000..a67379c2 --- /dev/null +++ b/api1/pl.treksoft.kvision.cordova/-directory-entry/index.html @@ -0,0 +1,235 @@ + + + +DirectoryEntry - kvision + + + +kvision / pl.treksoft.kvision.cordova / DirectoryEntry
+
+

DirectoryEntry

+external interface DirectoryEntry : Entry +

Inherited Properties

+ + + + + + + + + + + + + + + + + + + + + + + +
+

filesystem

+
+abstract var filesystem: FileSystem
+

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(): DirectoryReader
+

getDirectory

+
+abstract fun getDirectory(path: String, options: Flags? = definedExternally, successCallback: DirectoryEntryCallback?, errorCallback: ErrorCallback? = definedExternally): Unit
+

getFile

+
+abstract fun getFile(path: String, options: Flags? = definedExternally, successCallback: FileEntryCallback?, errorCallback: ErrorCallback? = definedExternally): Unit
+

removeRecursively

+
+abstract fun removeRecursively(successCallback: VoidCallback, errorCallback: ErrorCallback? = definedExternally): Unit
+

Inherited Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

copyTo

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

getMetadata

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

getParent

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

moveTo

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

remove

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

toInternalURL

+
+abstract fun toInternalURL(): String
+

toURL

+
+abstract fun toURL(): String
+

Extension Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

copyTo

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

Copy given file or directory to a new location.

+
+

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.

+
+

getDirectory

+
+suspend fun DirectoryEntry.getDirectory(path: String, create: Boolean = true, exclusive: Boolean = false): Result<DirectoryEntry, FileException> +

Get or create a directory in a given parent directory.

+
+

getFile

+
+suspend fun DirectoryEntry.getFile(path: String, create: Boolean = true, exclusive: Boolean = false): Result<FileEntry, FileException> +

Get or create a file in a given parent directory.

+
+

getMetadata

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

Get file or directory metadata.

+
+

getParent

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

Get file or directory parent directory entry.

+
+

moveTo

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

Move given file or directory to a new location.

+
+

readEntries

+
+suspend fun DirectoryEntry.readEntries(): Result<List<Entry>, FileException> +

List directory entries for a given parent directory entry.

+
+

remove

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

Remove given file or directory.

+
+

removeRecursively

+
+suspend fun DirectoryEntry.removeRecursively(): Result<DirectoryEntry, FileException> +

Remove given directory recursively.

+
+ + -- cgit