Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mtojek committed Oct 25, 2021
1 parent a4e8466 commit 92ef5d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/files/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ func Zip(sourcePath, destinationFile string) error {
if err != nil {
return errors.Wrap(err, "can't prepare a temporary directory")
}
defer os.RemoveAll(tempDir)
workDir := filepath.Join(tempDir, folderNameFromFileName(destinationFile))
os.MkdirAll(workDir, 0755)
defer os.RemoveAll(tempDir)

logger.Debugf("Create work directory for archiving: %s", workDir)
err = CopyAll(sourcePath, workDir)
Expand Down

0 comments on commit 92ef5d7

Please sign in to comment.