api / org.gradle.api / Project / mkdir

mkdir

abstract 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 #file(Object).

Exceptions

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

Return
the created directory