1
0

Update module spf13/viper to v1.6.2 (#272)

Update module spf13/viper to v1.6.2

Reviewed-on: https://kolaente.dev/vikunja/api/pulls/272
This commit is contained in:
renovate
2020-04-08 18:43:35 +00:00
committed by konrad
parent dda558fe1c
commit 13ebb98644
42 changed files with 4469 additions and 163 deletions

View File

@ -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