检查项目地址是否存在 @author baozi <202-02-22> @param: pjname ( str ): 项目名称 path ( str ): 项目路径 @return bool : 返回验证结果
(path=None)
| 400 | |
| 401 | @staticmethod |
| 402 | def _check_project_path_exist(path=None): |
| 403 | """检查项目地址是否存在 |
| 404 | @author baozi <202-02-22> |
| 405 | @param: |
| 406 | pjname ( str ): 项目名称 |
| 407 | path ( str ): 项目路径 |
| 408 | @return bool : 返回验证结果 |
| 409 | """ |
| 410 | data = public.M('sites').where('path=? ', (path,)).field('id').find() |
| 411 | return bool(data) |
| 412 | |
| 413 | @staticmethod |
| 414 | def __check_feasibility(values): |
no test coverage detected