mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
Merge branch 'develop' of https://github.com/tikazyq/crawlab
This commit is contained in:
@@ -106,7 +106,7 @@ func DeCompress(srcFile *os.File, dstPath string) error {
|
||||
}
|
||||
|
||||
// 创建新文件
|
||||
newFile, err := os.Create(filepath.Join(dstPath, innerFile.Name))
|
||||
newFile, err := os.OpenFile(filepath.Join(dstPath, innerFile.Name), os.O_RDWR|os.O_CREATE|os.O_TRUNC, info.Mode())
|
||||
if err != nil {
|
||||
log.Errorf("Unzip File Error : " + err.Error())
|
||||
debug.PrintStack()
|
||||
|
||||
Reference in New Issue
Block a user