Skip to content

Commit

Permalink
added more log
Browse files Browse the repository at this point in the history
  • Loading branch information
saqijaan committed Dec 24, 2024
1 parent 1efd01d commit a6759d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,15 @@ func (r *S3) Directories(path string) ([]string, error) {
}

func (r *S3) Exists(file string) bool {
_, err := r.instance.HeadObject(r.ctx, &s3.HeadObjectInput{
o, err := r.instance.HeadObject(r.ctx, &s3.HeadObjectInput{
Bucket: aws.String(r.bucket),
Key: aws.String(file),
})

log.Printf("output %v:", o)

if err != nil {
log.Println("Error while checking file existance:", err)
log.Println("error while checking file existance:", err)
return false
}

Expand Down

0 comments on commit a6759d4

Please sign in to comment.