Solar_Dir::mkdir()

static public bool Solar_Dir::mkdir ( string $path , int $mode = 511 , bool $recursive = false )

Replacement for mkdir() to supress warnings and throw exceptions in their place.

Parameters

  • (string) $path: The directory path to create.

  • (int) $mode: The permissions mode for the directory.

  • (bool) $recursive: Recursively create directories along the way.

Returns

  • (bool) True on success; throws exception on failure.

Description

Replacement for mkdir() to supress warnings and throw exceptions in their place.

See Also



Local