mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-06 17:00:20 +00:00
🔖 dashboard v0.13.0 Globalization
This commit is contained in:
1 parent
fe51b1afdc
commit
ade06839b7
11 files changed
+52
-13
No files matched your search
@@ -68,3 +68,14 @@ func IPDesensitize(ipAddr string) string {
|
||||
ipAddr = ipv6Desensitize(ipAddr)
|
||||
return ipAddr
|
||||
}
|
||||
|
||||
func PathExists(path string) (bool, error) {
|
||||
_, err := os.Stat(path)
|
||||
if err == nil {
|
||||
return true, nil
|
||||
}
|
||||
if os.IsNotExist(err) {
|
||||
return false, nil
|
||||
}
|
||||
return false, err
|
||||
}
|
||||
Reference in new issue
Block a user