src/OaiPmh/HarvesterFactory.php
protected function getBasePath($harvestRoot, $target)
    {
        // Build the full harvest path:
        $basePath = rtrim($harvestRoot, '/') . '/' . rtrim($target, '/') . '/';

        // Create the directory if it does not already exist:
        if (!is_dir($basePath)) {
            if (!mkdir($basePath)) {
                throw new \Exception("Problem creating directory {$basePath}.");
            }
        }

        return $basePath;
    }
protected function getBasePath($harvestRoot, $target)
    {
        // Build the full harvest path:
        $basePath = rtrim($harvestRoot, '/') . '/' . rtrim($target, '/') . '/';

        // Create the directory if it does not already exist:
        if (!is_dir($basePath)) {
            if (!mkdir($basePath)) {
                throw new \Exception("Problem creating directory {$basePath}.");
            }
        }

        return $basePath;
    }
protected function getBasePath ( $ harvestRoot , $ target ) { // Build the full harvest path: $ basePath = rtrim ( $ harvestRoot , '/' ) . '/' . rtrim ( $ target , '/' ) . '/' ; // Create the directory if it does not already exist: if ( ! is_dir ( $ basePath ) ) { if ( ! mkdir ( $ basePath ) ) { throw new \ Exception ( "Problem creating directory {$basePath}." ) ; } } return $ basePath ; }
Set up directory structure for harvesting.

@param string $harvestRoot Root directory containing harvested data.
@param string $target      The OAI-PMH target directory to create inside
$harvestRoot.

@return string
Set up directory structure for harvesting .