DNData::setDataTransferDir PHP Method

setDataTransferDir() public method

This should either be an absolute path (beginning with /) or a path that can be appended to the web root safely
public setDataTransferDir ( string $transferDir )
$transferDir string
    public function setDataTransferDir($transferDir)
    {
        if ($transferDir[0] != "/") {
            $transferDir = BASE_PATH . '/' . $transferDir;
        }
        if (strpos($transferDir, ASSETS_PATH) === false) {
            throw new LogicException(sprintf('DNData::dataTransferDir needs to be located within <webroot>assets/ (location: %s)', $transferDir));
        }
        $this->dataTransferDir = realpath($transferDir) ?: $transferDir;
    }