Skip to content

Commit

Permalink
change from fs package to os package for backwards compat
Browse files Browse the repository at this point in the history
Signed-off-by: Tai Groot <tai@taigrr.com>
  • Loading branch information
taigrr committed Mar 19, 2022
1 parent e160364 commit f031448
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/snapshot/clonetree.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ package snapshot

import (
"errors"
"io/fs"
"io/ioutil"
"os"
"path/filepath"
Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit f031448

Please sign in to comment.