Skip to content

Commit

Permalink
fix: awss3 copy buffer folder left bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lovehunter9 committed Nov 29, 2024
1 parent 4171413 commit 27df45d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/http/paste.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func removeDiskBuffer(filePath string, srcType string) {
fmt.Println("Failed to delete buffer file:", err)
return
}
if srcType == "google" {
if srcType == "google" || srcType == "awss3" {
dir := filepath.Dir(filePath)
err = os.Remove(dir)
if err != nil {
Expand Down

0 comments on commit 27df45d

Please sign in to comment.