src/Filesystem.php
/**
     * Wrapper around the mkdir that will only execute it if the directory 
     * doesn't already exist. Also, this defaults to being recursive so that it 
     * will create all relevant parent directories
     * 
     * @param string $dirPath - the path to the directory we wish to create
     * @param int $perms      - optionally set the permissions to set for the 
     *                          directory
     * @param bool $recursive - override to false if you want to fail if parent 
     *                          dirs dont exist.
     * 
     * @return boolean - true if the directory now exists, false otherwise
     */
Wrapper around the mkdir that will only execute it if the directory
doesn't already exist. Also, this defaults to being recursive so that it
will create all relevant parent directories

@param string $dirPath - the path to the directory we wish to create
@param int $perms      - optionally set the permissions to set for the
directory
@param bool $recursive - override to false if you want to fail if parent
dirs dont exist.

@return boolean - true if the directory now exists, false otherwise
Wrapper around the mkdir that will only execute it if the directory doesn ' t already exist . Also this defaults to being recursive so that it will create all relevant parent directories @param string $dirPath - the path to the directory we wish to create @param int $perms - optionally set the permissions to set for the directory @param bool $recursive - override to false if you want to fail if parent dirs dont exist . @return boolean - true if the directory now exists false otherwise
public static function mkdir($dirPath, $perms=0755, $recursive=true)
    {
        $result = true;
        if (!is_dir($dirPath)) 
        {
            $result = mkdir($dirPath, $perms, $recursive);
        }
        return $result;
    }
public static function mkdir ( $ dirPath , $ perms = 0755 , $ recursive = true ) { $ result = true ; if ( ! is_dir ( $ dirPath ) ) { $ result = mkdir ( $ dirPath , $ perms , $ recursive ) ; } return $ result ; }
Wrapper around the mkdir that will only execute it if the directory
 doesn't already exist.
Wrapper around the mkdir that will only execute it if the directory doesn ' t already exist .