diff options
author | Dawid Dziurla <dawidd0811@gmail.com> | 2019-12-13 11:29:12 +0100 |
---|---|---|
committer | Dawid Dziurla <dawidd0811@gmail.com> | 2019-12-13 11:31:04 +0100 |
commit | be8f589c325e7a7d78c753a2571577eb76cba4ad (patch) | |
tree | 89bd2ab275e48bba66c35a1696f21e2a7f1612d8 /vendor/github.com/spf13/viper/util.go | |
parent | 3074ae99ead364d38c0d271df18bdf95eacfa8ea (diff) |
update dependencies
Diffstat (limited to 'vendor/github.com/spf13/viper/util.go')
-rw-r--r-- | vendor/github.com/spf13/viper/util.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/spf13/viper/util.go b/vendor/github.com/spf13/viper/util.go index 952cad44c..b78896963 100644 --- a/vendor/github.com/spf13/viper/util.go +++ b/vendor/github.com/spf13/viper/util.go @@ -114,11 +114,11 @@ func absPathify(inPath string) string { return "" } -// Check if File / Directory Exists +// Check if file Exists func exists(fs afero.Fs, path string) (bool, error) { - _, err := fs.Stat(path) + stat, err := fs.Stat(path) if err == nil { - return true, nil + return !stat.IsDir(), nil } if os.IsNotExist(err) { return false, nil |