From 0b9e0f34cca6dc17cb0ffaa9fca6cdfa378b471c Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Wed, 13 Apr 2022 12:32:00 -0600 Subject: [PATCH] Switch to use os instead of fs in an attempt to be compatible with go <1.16. --- internal/cloud/s3.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/cloud/s3.go b/internal/cloud/s3.go index 3c3baeba..3ca2a46f 100644 --- a/internal/cloud/s3.go +++ b/internal/cloud/s3.go @@ -5,7 +5,6 @@ import ( "errors" "fmt" "io" - "io/fs" "log" "os" "path/filepath" @@ -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 }