Skip to content

Commit

Permalink
Switch to use os instead of fs in an attempt to be compatible with go…
Browse files Browse the repository at this point in the history
… <1.16.
  • Loading branch information
Cedric BAIL committed Apr 13, 2022
1 parent e928f4a commit 0b9e0f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/cloud/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"io"
"io/fs"
"log"
"os"
"path/filepath"
Expand All @@ -32,7 +31,7 @@ type AWSSession struct {
func Exists(path string) bool {
_, err := os.Stat(path)
if err != nil {
return !errors.Is(err, fs.ErrNotExist)
return !errors.Is(err, os.ErrNotExist)
}
return true
}
Expand Down

0 comments on commit 0b9e0f3

Please sign in to comment.