Dir
in package
The `Dir` class provides methods for dealing with directories on the file system level, like creating, listing, moving, copying or evaluating directories etc.
For the Cms, it includes methods, that handle scanning directories and converting the results into children, files and other page stuff.
Table of Contents
- make() : bool
- Creates a new directory
Methods
make()
Creates a new directory
public
static make(string $dir[, bool $recursive = true ]) : bool
Parameters
- $dir : string
-
The path for the new directory
- $recursive : bool = true
-
Create all parent directories, which don't exist
Tags
Return values
bool —True: the dir has been created, false: creating failed