public function checkRootPath($rootpath) { $this->rootPath = trim($rootpath, './') . '/'; return true; }