Skip to content

Commit

Permalink
Change Deletion of old unfinished Downloads to 4 days
Browse files Browse the repository at this point in the history
  • Loading branch information
ensingerphilipp authored Jan 28, 2025
1 parent 164a6f7 commit b91310f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/transfer_manager_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ func (t *TransferManagerService) CleanUpUnzipDirPeriod() {
return
}

// Define the threshold for deletion: 7 days
threshold := time.Now().AddDate(0, 0, -7)
// Define the threshold for deletion: 4 days
threshold := time.Now().AddDate(0, 0, -4)

err = filepath.Walk(unzipBase, func(path string, info os.FileInfo, err error) error {
if err != nil {
Expand Down

0 comments on commit b91310f

Please sign in to comment.