CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
Fixed compression error (#1097)
link2fefee87facf
diff --git a/pkg/utils/file/file.go b/pkg/utils/file/file.goindex 7a1e83c..e67a8e4 100644--- a/pkg/utils/file/file.go+++ b/pkg/utils/file/file.go@@ -431,7 +431,9 @@ func AddFile(ar archiver.Writer, path, commonPath string) error {defer file.Close()if path != commonPath {- filename := info.Name()+ //filename := info.Name()+ filename := strings.TrimPrefix(path, commonPath)+ filename = strings.TrimPrefix(filename, string(filepath.Separator))err = ar.Write(archiver.File{FileInfo: archiver.FileInfo{FileInfo: info,