makeDirectory.php
Table of Contents
Functions
- makeDirectory() : string|null
- Creates a directory if it does not exist and returns the path of the directory.
Functions
makeDirectory()
Creates a directory if it does not exist and returns the path of the directory.
makeDirectory(string|null $directory[, int $permissions = 0755 ][, bool $recursive = true ]) : string|null
Parameters
- $directory : string|null
-
The path of the directory to create.
- $permissions : int = 0755
-
The permissions to set for the directory (default: 0755).
- $recursive : bool = true
-
If true, creates parent directories as needed (default: true).
Tags
Return values
string|null —Returns the path of the directory.