MCPcopy Create free account
hub / github.com/cronitorio/cronitor-cli / isPathToDirectory

Function isPathToDirectory

cmd/root.go:394–401  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

392}
393
394func isPathToDirectory(path string) bool {
395 fileInfo, err := os.Stat(path)
396 if err != nil {
397 return false
398 }
399
400 return fileInfo.Mode().IsDir()
401}
402
403func log(msg string) {
404 debugLog := viper.GetString(varLog)

Callers 2

discover.goFile · 0.85
gatherCrontabsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected