/** * 完全删除指定文件目录 * @author jry <*****@*****.**> */ public function rmdirr($dirname = RUNTIME_PATH) { $file = new \Common\Util\File(); $result = $file->del_dir($dirname); if ($result) { $this->success("缓存清理成功"); } else { $this->error("缓存清理失败"); } }
/** * 删除缓存 * @author jry <*****@*****.**> */ public function removeRuntime() { $file = new \Common\Util\File(); $result = $file->del_dir(RUNTIME_PATH); if ($result) { $this->success("缓存清理成功"); } else { $this->error("缓存清理失败"); } }
/** * 完全删除指定文件目录 * @author jry <*****@*****.**> */ public function rmdirr($dirname = RUNTIME_PATH) { $file = new \Common\Util\File(); $file_list = $file::get_dirs(getcwd() . '/' . $dirname); foreach ($file_list['dir'] as $val) { if ($val !== '.' && $val !== '..') { $result = $file->del_dir($dirname . $val); } } if ($result) { $this->success("缓存清理成功"); } else { $this->error("缓存清理失败"); } }
/** * 完全删除指定文件目录 */ public function rmdirr($dirname = RUNTIME_PATH) { $file = new \Common\Util\File(); $result = $file->del_dir($dirname); $this->os_redirect($result, '缓存清理'); }