external interface Entry
abstract var filesystem: FileSystem |
|
abstract var fullPath: String |
|
abstract var isDirectory: Boolean |
|
abstract var isFile: Boolean |
|
abstract var name: String |
abstract fun copyTo(parent: DirectoryEntry, newName: String? = definedExternally, successCallback: EntryCallback? = definedExternally, errorCallback: ErrorCallback? = definedExternally): Unit |
|
abstract fun getMetadata(successCallback: MetadataCallback, errorCallback: ErrorCallback? = definedExternally): Unit |
|
abstract fun getParent(successCallback: DirectoryEntryCallback, errorCallback: ErrorCallback? = definedExternally): Unit |
|
abstract fun moveTo(parent: DirectoryEntry, newName: String? = definedExternally, successCallback: EntryCallback? = definedExternally, errorCallback: ErrorCallback? = definedExternally): Unit |
|
abstract fun remove(successCallback: VoidCallback, errorCallback: ErrorCallback? = definedExternally): Unit |
|
abstract fun toInternalURL(): String |
|
abstract fun toURL(): String |
suspend fun Entry.copyTo(parent: DirectoryEntry, newName: String? = null): Result<Entry, FileException>
Copy given file or directory to a new location. |
|
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |
|
suspend fun Entry.getMetadata(): Result<Metadata, FileException>
Get file or directory metadata. |
|
suspend fun Entry.getParent(): Result<DirectoryEntry, FileException>
Get file or directory parent directory entry. |
|
suspend fun Entry.moveTo(parent: DirectoryEntry, newName: String? = null): Result<Entry, FileException>
Move given file or directory to a new location. |
|
suspend fun Entry.remove(): Result<Entry, FileException>
Remove given file or directory. |
external interface DirectoryEntry : Entry |
|
external interface FileEntry : Entry |