We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8422a7 commit e73ec7dCopy full SHA for e73ec7d
pkg/standalone/common.go
@@ -74,7 +74,10 @@ func DefaultConfigFilePath() string {
74
func emptyAndCopyFiles(src, dest string) error {
75
if _, err := os.Stat(src); err != nil {
76
// if the src directory does not exist, return nil, because there is nothing to copy from.
77
- return nil
+ if os.IsNotExist(err) {
78
+ return nil
79
+ }
80
+ return err
81
}
82
files, err := os.ReadDir(dest)
83
if err != nil {
0 commit comments