directory

infix fun File.directory(path: String): File

Creates a directory at the given path relative to this file or a specified root directory.

Receiver

The starting file or the root directory (optional).

Return

The created directory.

Parameters

path

The path of the directory to create.