On this page
Package kotlin.io.path
Convenient extensions for working with file system using java.nio.file.Path.
Types
FileVisitorBuilder
The builder to provide implementation of the file visitor that fileVisitor builds.
sealed interface FileVisitorBuilder
PathWalkOption
An enumeration to provide walk options for Path.walk function. The options can be combined to form the walk order and behavior needed.
enum class PathWalkOption
Annotations
ExperimentalPathApi
This annotation marks the extensions and top-level functions for working with java.nio.file.Path considered experimental.
annotation class ExperimentalPathApi
Extensions for External Classes
java.net.URI
java.nio.file.Path
Functions
createTempDirectory
Creates a new directory in the default temp directory, using the given prefix to generate its name.
fun createTempDirectory(
prefix: String? = null,
vararg attributes: FileAttribute<*>
): Path
createTempFile
fileVisitor
Builds a FileVisitor whose implementation is defined in builderAction.
fun fileVisitor(
builderAction: FileVisitorBuilder.() -> Unit
): FileVisitor<Path>
© 2010–2022 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io.path/index.html