DirectoryEntry

external interface DirectoryEntry : Entry

Properties

Link copied to clipboard
abstract var filesystem: FileSystem
Link copied to clipboard
abstract var fullPath: String
Link copied to clipboard
abstract var isDirectory: Boolean
Link copied to clipboard
abstract var isFile: Boolean
Link copied to clipboard
abstract var name: String

Functions

Link copied to clipboard
abstract fun copyTo(parent: DirectoryEntry, newName: String? = definedExternally, successCallback: EntryCallback? = definedExternally, errorCallback: ErrorCallback? = definedExternally)
Link copied to clipboard
suspend fun Entry.copyTo(parent: DirectoryEntry, newName: String? = null): <Error class: unknown class><Entry>

Copy given file or directory to a new location.

Link copied to clipboard
Link copied to clipboard
abstract fun getDirectory(path: String, options: Flags? = definedExternally, successCallback: DirectoryEntryCallback?, errorCallback: ErrorCallback? = definedExternally)
Link copied to clipboard
suspend fun DirectoryEntry.getDirectory(path: String, create: Boolean = true, exclusive: Boolean = false): <Error class: unknown class><DirectoryEntry>

Get or create a directory in a given parent directory.

Link copied to clipboard
abstract fun getFile(path: String, options: Flags? = definedExternally, successCallback: FileEntryCallback?, errorCallback: ErrorCallback? = definedExternally)
Link copied to clipboard
suspend fun DirectoryEntry.getFile(path: String, create: Boolean = true, exclusive: Boolean = false): <Error class: unknown class><FileEntry>

Get or create a file in a given parent directory.

Link copied to clipboard
abstract fun getMetadata(successCallback: MetadataCallback, errorCallback: ErrorCallback? = definedExternally)
Link copied to clipboard
suspend fun Entry.getMetadata(): <Error class: unknown class><Metadata>

Get file or directory metadata.

Link copied to clipboard
abstract fun getParent(successCallback: DirectoryEntryCallback, errorCallback: ErrorCallback? = definedExternally)
Link copied to clipboard
suspend fun Entry.getParent(): <Error class: unknown class><DirectoryEntry>

Get file or directory parent directory entry.

Link copied to clipboard
abstract fun moveTo(parent: DirectoryEntry, newName: String? = definedExternally, successCallback: EntryCallback? = definedExternally, errorCallback: ErrorCallback? = definedExternally)
Link copied to clipboard
suspend fun Entry.moveTo(parent: DirectoryEntry, newName: String? = null): <Error class: unknown class><Entry>

Move given file or directory to a new location.

Link copied to clipboard
suspend fun DirectoryEntry.readEntries(): <Error class: unknown class><List<Entry>>

List directory entries for a given parent directory entry.

Link copied to clipboard
abstract fun remove(successCallback: VoidCallback, errorCallback: ErrorCallback? = definedExternally)
Link copied to clipboard
suspend fun Entry.remove(): <Error class: unknown class><Entry>

Remove given file or directory.

Link copied to clipboard
abstract fun removeRecursively(successCallback: VoidCallback, errorCallback: ErrorCallback? = definedExternally)
Link copied to clipboard
suspend fun DirectoryEntry.removeRecursively(): <Error class: unknown class><DirectoryEntry>

Remove given directory recursively.

Link copied to clipboard
abstract fun toInternalURL(): String
Link copied to clipboard
abstract fun toURL(): String