rootdir = $rdir; $this->dir = $dir; $this->fullpath = $rdir.DIRECTORY_SEPARATOR.$dir; } /** * Newly created directory. * * @return string */ public function dirname($endseparator = false) { return $this->dir.($endseparator ? '/' : ''); } /** * Full path to the new directory. * * @return string */ public function fullpath($endseparator = false) { return $this->fullpath.($endseparator ? DIRECTORY_SEPARATOR : ''); } /** * Returns containing dir. * * @return string */ public function rootdir($endseparator = false) { return $this->rootdir.($endseparator ? DIRECTORY_SEPARATOR : ''); } }