Package kotlin.io.path
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
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
Creates a new directory in the specified directory, using the given prefix to generate its name.
fun createTempDirectory(
directory: Path,
prefix: String? = null,
vararg attributes: FileAttribute<*>
): Path
createTempFile
Creates an empty file in the default temp directory, using the given prefix and suffix to generate its name.
fun createTempFile(
prefix: String? = null,
suffix: String? = null,
vararg attributes: FileAttribute<*>
): Path