Rename find path

This commit is contained in:
世界
2022-07-06 14:44:51 +08:00
parent 86a38a1c7e
commit dcd7ca78fc
2 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ const dirName = "sing-box"
var resourcePaths []string
func Find(name string) (string, bool) {
func FindPath(name string) (string, bool) {
name = os.ExpandEnv(name)
if rw.FileExists(name) {
return name, true