Entry

external interface Entry

Functions

copyTo
Link copied to clipboard
js
abstract fun copyTo(parent: DirectoryEntry, newName: String? = definedExternally, successCallback: EntryCallback? = definedExternally, errorCallback: ErrorCallback? = definedExternally)
getMetadata
Link copied to clipboard
js
abstract fun getMetadata(successCallback: MetadataCallback, errorCallback: ErrorCallback? = definedExternally)
getParent
Link copied to clipboard
js
abstract fun getParent(successCallback: DirectoryEntryCallback, errorCallback: ErrorCallback? = definedExternally)
moveTo
Link copied to clipboard
js
abstract fun moveTo(parent: DirectoryEntry, newName: String? = definedExternally, successCallback: EntryCallback? = definedExternally, errorCallback: ErrorCallback? = definedExternally)
remove
Link copied to clipboard
js
abstract fun remove(successCallback: VoidCallback, errorCallback: ErrorCallback? = definedExternally)
toInternalURL
Link copied to clipboard
js
abstract fun toInternalURL(): String
toURL
Link copied to clipboard
js
abstract fun toURL(): String

Properties

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

Inheritors

DirectoryEntry
Link copied to clipboard
FileEntry
Link copied to clipboard

Extensions

copyTo
Link copied to clipboard
js
suspend fun Entry.copyTo(parent: DirectoryEntry, newName: String? = null): Result<Entry, FileException>
Copy given file or directory to a new location.
getMetadata
Link copied to clipboard
js
suspend fun Entry.getMetadata(): Result<Metadata, FileException>
Get file or directory metadata.
getParent
Link copied to clipboard
js
suspend fun Entry.getParent(): Result<DirectoryEntry, FileException>
Get file or directory parent directory entry.
moveTo
Link copied to clipboard
js
suspend fun Entry.moveTo(parent: DirectoryEntry, newName: String? = null): Result<Entry, FileException>
Move given file or directory to a new location.
remove
Link copied to clipboard
js
suspend fun Entry.remove(): Result<Entry, FileException>
Remove given file or directory.