public function checkRootPath($rootpath) { /* 设置根目录 */ $this->rootPath = trim($rootpath, './') . '/'; return true; }