wireMkdir() function
Create a directory (optionally recursively) that is writable to ProcessWire and uses the $config chmod settings
This is procedural version of the $files->mkdir()
method.
Please note this method is and thus not intended to be called directly.
Internal usage
// basic internal usage
$bool = wireMkdir(string $path);
// internal usage with all arguments
$bool = wireMkdir(string $path, bool $recursive = false, string $chmod = null);
Arguments
Name | Type(s) | Description |
---|---|---|
$path | string | |
$recursive (optional) | bool | If set to true, all directories will be created as needed to reach the end. |
$chmod (optional) | string | Optional mode to set directory to Default: $config->chmodDir format must be a string i.e. "0755" If omitted, then ProcessWire’s $config->chmodDir setting is used instead. |
Return value
bool
See Also
Functions methods and properties
API reference based on ProcessWire core version 3.0.251