external interface FileEntrySync : EntrySync
abstract var filesystem: FileSystemSync |
|
abstract var fullPath: String |
|
abstract var isDirectory: Boolean |
|
abstract var isFile: Boolean |
|
abstract var name: String |
abstract fun createWriter(): FileWriterSync |
|
abstract fun file(): File |
abstract fun copyTo(parent: DirectoryEntrySync, newName: String? = definedExternally): EntrySync |
|
abstract fun getMetadata(): Metadata |
|
abstract fun getParent(): DirectoryEntrySync |
|
abstract fun moveTo(parent: DirectoryEntrySync, newName: String? = definedExternally): EntrySync |
|
abstract fun remove(): Unit |
|
abstract fun toURL(): String |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |