Skip to content

Commit

Permalink
74: delete temp file after copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Neverov committed Mar 15, 2024
1 parent 6d0e7b2 commit 6df3ad8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,10 @@ func createArchive(srcDir, archiveTempDir, archiveFinalDir, archiveDestFile stri
return fmt.Errorf("error copying archive to artifact directory: %v", err)
}

// Delete temp file from archive temp directory.
if err := os.Remove(path.Clean(archivePath)); err != nil {
return fmt.Errorf("error deleting temp file: %v", err)
}

return nil
}

0 comments on commit 6df3ad8

Please sign in to comment.