mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-12 04:01:48 +08:00
add subscription pattern to acls,fix NaN value in metrics for uptime,get real iface name for mac
This commit is contained in:
@@ -218,3 +218,11 @@ func StringDifference(a, b []string) []string {
|
||||
}
|
||||
return diff
|
||||
}
|
||||
|
||||
// CheckIfFileExists - checks if file exists or no in the given path
|
||||
func CheckIfFileExists(filePath string) bool {
|
||||
if _, err := os.Stat(filePath); os.IsNotExist(err) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
Reference in New Issue
Block a user