Package dev.petuska.klip.ext

Types

File
Link copied to clipboard
common
class File(path: String)
Multiplatform wrapper over java.io.
fallback
class File(path: String)
Multiplatform wrapper over java.io.
js
class File(path: String)
Multiplatform wrapper over java.io.
native
class File(path: String)
Multiplatform wrapper over java.io.
typealias File = File

Functions

deleteRecursively
Link copied to clipboard
common
fun File.deleteRecursively(): Boolean
Deletes this file and any subdirectories recursively
fallback
fun File.deleteRecursively(): Boolean
Deletes this file and any subdirectories recursively
js
fun File.deleteRecursively(): Boolean
Deletes this file and any subdirectories recursively
native
fun File.deleteRecursively(): Boolean
Deletes this file and any subdirectories recursively
readText
Link copied to clipboard
common
fun File.readText(): String
Reads this file as text
fallback
fun File.readText(): String
Reads this file as text
js
fun File.readText(): String
Reads this file as text
native
fun File.readText(): String
Reads this file as text
writeText
Link copied to clipboard
common
fun File.writeText(text: String)
Writes text to file creating it if needed and fully overwriting any previous content
fallback
fun File.writeText(text: String)
Writes text to file creating it if needed and fully overwriting any previous content
js
fun File.writeText(text: String)
Writes text to file creating it if needed and fully overwriting any previous content
native
fun File.writeText(text: String)
Writes text to file creating it if needed and fully overwriting any previous content