createSubDirectory

fun createSubDirectory(mainDir: Path, dirName: String): Path

Creates a subdirectory within the supplied main directory.

Return

the path to the subdirectory, or mainDir, if something went wrong

Parameters

mainDir

a path to the directory to hold the subdirectory, must not be null

dirName

the name of the subdirectory, must not be null