liuxiaolong
2019-12-19 76cfcbf254fa4a6ed792777cb7f8606bae391e73
fix remove to removeAll
1个文件已修改
10 ■■■■ 已修改文件
service/SysService.go 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/SysService.go
@@ -201,15 +201,15 @@
    unZipPath := configPatchPath+"/"+identifier+"_basic/"
    if util.Exists(unZipPath) {
        //此版本已经更新过
        rmErr := os.Remove(unZipPath)
        rmErr := os.RemoveAll(unZipPath)
        if rmErr !=nil {
            return false
        }
    } else {
        if !util.CreateDirectory(unZipPath) {
            return false
        }
    }
    if !util.CreateDirectory(unZipPath) {
        return false
    }
    zipFilePath := configPatchPath+"/"+identifier+ext
    err := util.UnZip(zipFilePath, unZipPath)
    if err !=nil {