public function checkSavePath($savepath) { /* 检测并创建目录 */ if (!$this->mkdir($savepath)) { return false; } else { //TODO:检测目录是否可写 return true; } }