Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oldfritter committed Mar 17, 2020
1 parent 3374e99 commit af78c12
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions utils/uploadToQiniu.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"
"io/ioutil"
"os/exec"
"path/filepath"

"github.com/qiniu/api.v7/auth/qbox"
Expand Down Expand Up @@ -51,6 +50,5 @@ func UploadFileToQiniu(bucket, key, filePath string) error {
if err != nil {
return err
}
exec.Command("sh", "-c", "rm -rf "+filePath).Output()
return nil
}
2 changes: 0 additions & 2 deletions utils/uploadToS3.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"log"
"net/http"
"os"
"os/exec"
"path/filepath"

"github.com/aws/aws-sdk-go/aws"
Expand Down Expand Up @@ -59,7 +58,6 @@ func AddFileToS3(s *session.Session, bucket, key, filePath string) error {
if err != nil {
return err
} else {
exec.Command("sh", "-c", "rm -rf "+filePath).Output()
return nil
}
}
Expand Down

0 comments on commit af78c12

Please sign in to comment.