Skip to content

Filesystem accessopensavvy.prepared.compat.filesystem

Package-level declarations

Functions

createRandomDirectory

@ExperimentalPathApi
fun createRandomDirectory(prefix: String = ""): PreparedProvider<Path>

Creates a random directory, which is automatically deleted at the end of the test.

createRandomFile

fun createRandomFile(prefix: String = "", suffix: String = ""): PreparedProvider<Path>

Creates a random file, which is automatically deleted at the end of the test.

div

operator fun File.div(child: String): File

Accesses a file named child in the provided directory.

operator fun Path.div(child: String): Path

Accesses a file named child in the provided directory.

@JvmName
(name = "childFile")operator fun PreparedProvider<File>.div(child: String): PreparedProvider<File>

Accesses a file named child in the provided directory.

@JvmName
(name = "childPath")operator fun PreparedProvider<Path>.div(child: String): PreparedProvider<Path>

Accesses a file named child in the provided directory.

@JvmName
(name = "childFile")operator fun Prepared<File>.div(child: String): Prepared<File>

Accesses a file named child in the provided directory.

@JvmName
(name = "childPath")operator fun Prepared<Path>.div(child: String): Prepared<Path>

Accesses a file named child in the provided directory.