Esempio n. 1
0
 /**
  * Get an absolute path to a processing directory for the journal.
  *
  * @param string  $dirname
  * @param Journal $journal
  *
  * @return string
  */
 protected function absolutePath($dirname, Journal $journal = null)
 {
     $path = $this->rootPath() . '/' . $dirname;
     if (substr($dirname, -1) !== '/') {
         $path .= '/';
     }
     if (!$this->fs->exists($path)) {
         $this->fs->mkdir($path);
     }
     if ($journal !== null) {
         return $path . $journal->getUuid();
     }
     return realpath($path);
 }