protected function getFilePath($file) { if (strpos($file, '/') === 0) { return FileSystem::realPath(self::BASEDIR) . $file . $this->ext; } else { return $this->dir . $file . $this->ext; } }
/** * Returns canonicalized absolute pathname to the file. * * This works with non-existant paths. * * @return string */ public function absPath() { return FileSystem::realPath($this->path); }