api / org.gradle.kotlin.dsl / SettingsScriptApi / mkdir

mkdir

fun mkdir(path: Any): File

Creates a directory and returns a file pointing to it.

Parameters

path - The path for the directory to be created. Evaluated as per KotlinSettingsScript.file.

Exceptions

org.gradle.api.InvalidUserDataException - If the path points to an existing file.

Return
The created directory.