Path.mkdir

void mkdir(bool parents = false) const

Creates the directory at this path.

Parameters

parentsIf true, create parent directories as needed.

Throws

NotFoundError when parents is false and the parent is

missing; PathError (or a subclass) when creation fails.