Lines Matching defs:dir
294 * Traverse over the given dir and compare it to the DokuWiki dir
298 * @param string $dir
302 private function traverseCheckAndCopy($dir, $dryrun)
307 $dh = @opendir($base . '/' . $dir);
311 $from = "$base/$dir/$file";
312 $to = DOKU_INC . "$dir/$file";
319 $this->log('error', '<b>' . $this->getLang('tv_noperm') . '</b>', hsc("$dir/$file"));
326 if (!$this->traverseCheckAndCopy("$dir/$file", $dryrun)) {
339 $this->log('error', '<b>' . $this->getLang('tv_noperm') . '</b>', hsc("$dir/$file"));
342 $this->log('info', $this->getLang('tv_upd'), hsc("$dir/$file"));
345 // check dir
349 $this->log('error', '<b>' . $this->getLang('tv_nodel') . '</b>', hsc("$dir/$file"));
354 $this->log('error', '<b>' . $this->getLang('tv_nocopy') . '</b>', hsc("$dir/$file"));
357 $this->log('info', $this->getLang('tv_done'), hsc("$dir/$file"));
360 $this->log('error', '<b>' . $this->getLang('tv_nodir') . '</b>', hsc("$dir"));
393 protected function recursiveDelete($dir)
395 if (!$dh = @opendir($dir)) {
401 if (!@unlink($dir . '/' . $obj)) {
402 $this->recursiveDelete($dir . '/' . $obj);
406 return @rmdir($dir);