|
@@ -9,7 +9,7 @@ import ( |
|
|
|
|
|
|
|
|
// Exists returns whether or not the given file exists |
|
|
// Exists returns whether or not the given file exists |
|
|
func Exists(p string) bool { |
|
|
func Exists(p string) bool { |
|
|
if _, err := os.Stat(p); err == nil { |
|
|
|
|
|
|
|
|
if _, err := os.Stat(p); !os.IsNotExist(err) { |
|
|
return true |
|
|
return true |
|
|
} |
|
|
} |
|
|
return false |
|
|
return false |
|
|