From f031448af3345cf0131417d8ccda6a46d2440287 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Sat, 19 Mar 2022 13:02:47 -0700 Subject: [PATCH] change from fs package to os package for backwards compat Signed-off-by: Tai Groot --- pkg/snapshot/clonetree.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/snapshot/clonetree.go b/pkg/snapshot/clonetree.go index c31ef341..519a874d 100644 --- a/pkg/snapshot/clonetree.go +++ b/pkg/snapshot/clonetree.go @@ -8,7 +8,6 @@ package snapshot import ( "errors" - "io/fs" "io/ioutil" "os" "path/filepath" @@ -150,7 +149,7 @@ func copyFileTreeInto(paths []string, destDir string, opts *CopyFileOptions) err } } else { trace(" copying file: %q -> %q\n", path, destPath) - if err := copyPseudoFile(path, destPath); err != nil && !errors.Is(err, fs.ErrPermission) { + if err := copyPseudoFile(path, destPath); err != nil && !errors.Is(err, os.ErrPermission) { return err } }