feat: refactor.
This commit is contained in:
14
config/utils.go
Normal file
14
config/utils.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package config
|
||||
|
||||
import "os"
|
||||
|
||||
func pathExists(path string) bool {
|
||||
_, err := os.Stat(path)
|
||||
if err == nil {
|
||||
return true
|
||||
}
|
||||
if os.IsNotExist(err) {
|
||||
return false
|
||||
}
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user