Package dev.petuska.klip.core.ext

Types

File
Link copied to clipboard
common
class File(path: String)

Multiplatform wrapper over java.io.File API

class File(path: String)
class File(path: String)

Multiplatform wrapper over java.io.File

typealias File = File
typealias File = File

Functions

deleteRecursively
Link copied to clipboard
common
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

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

Properties

newline
Link copied to clipboard
val File.newline: String

Native newline separator for the platform (thanks a bunch, windows...)

val File.newline: String

Native newline separator for the platform (thanks a bunch, windows...)

val File.newline: String

Native newline separator for the platform (thanks a bunch, windows...)

val File.newline: String

Native newline separator for the platform (thanks a bunch, windows...)

val File.newline: String

Native newline separator for the platform (thanks a bunch, windows...)

separator
Link copied to clipboard
val File.separator: String

Native file separator for the platform (thanks a bunch, windows...)

val File.separator: String

Native file separator for the platform (thanks a bunch, windows...)

val File.separator: String

Native file separator for the platform (thanks a bunch, windows...)

val File.separator: String

Native file separator for the platform (thanks a bunch, windows...)

val File.separator: String

Native file separator for the platform (thanks a bunch, windows...)