src/OwpDkim.inc.php
static private function createPath($path)
    {
        if (is_dir($path)) return true;
        $prev_path = substr($path, 0, (strrpos($path, '/', -2) + 1));
        $return    = self::createPath($prev_path);
        return ($return && is_writable($prev_path)) ? mkdir($path) : false;

    }
static private function createPath($path)
    {
        if (is_dir($path)) return true;
        $prev_path = substr($path, 0, (strrpos($path, '/', -2) + 1));
        $return    = self::createPath($prev_path);
        return ($return && is_writable($prev_path)) ? mkdir($path) : false;

    }
Recursively create a long directory path

@method createPath()
@access private
@param  string $path Path to create.
@return boolean