Package-level declarations

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Path.delete()
Link copied to clipboard
Link copied to clipboard
fun Path.list(maximumEntries: Int = 256): List<Path>
Link copied to clipboard
fun Path.moveTo(destination: Path)
fun Path.moveTo(destination: Path, replaceExisting: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Path.readBytes(maximumBytes: Int = 65536): ByteArray
Link copied to clipboard
fun Path.readLines(maximumBytes: Int = 65536): List<String>

Reads all lines within the encoded file-size bound; see FileSystem.readLines.

Link copied to clipboard
fun Path.readText(maximumBytes: Int = 65536): String
Link copied to clipboard

Optional storage conveniences. Every operation delegates to the explicit FileSystem facade.

Link copied to clipboard
Link copied to clipboard
inline fun <R> Path.useLines(maximumLineBytes: Int = 65536, block: (Sequence<String>) -> R): R

Processes a scoped single-pass sequence, closing on every exit; see FileSystem.useLines.

Link copied to clipboard
fun Path.writeBytes(contents: ByteArray)
Link copied to clipboard
fun Path.writeText(contents: String)