/** * Validate that the public directory exists and is writable. Also * adds / to non-absolute paths if absolutePaths is set to true. * * @return void */ protected static function validatePublicDir() { if (self::$_opt['publicDir'] === null) { self::$_publicDir = self::$_outputDir; } else { self::$_publicDir = self::$_opt['publicDir']; } $char = substr(self::$_publicDir, 0, 1); if (self::$_opt['absolutePaths'] === true && $char !== '/') { self::$_publicDir = '/' . self::$_publicDir; } }