Reference

Guide

Dir::make()

Creates a new directory

Dir::make(string $dir, bool $recursive = true): bool

Parameters

Name Type Default Description
$dir string

The path for the new directory

$recursive bool true

Create all parent directories, which don't exist

Return type

bool

Source code

kirby/src/Toolkit/Dir.php#L210