MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / isSystem

Function isSystem

cli/pkg/ssh_config/config.go:293–296  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

291}
292
293func isSystem(filename string) bool {
294 // TODO: not sure this is the best way to detect a system repo
295 return strings.HasPrefix(filepath.Clean(filename), "/etc/ssh")
296}
297
298// Decode reads r into a Config, or returns an error if r could not be parsed as
299// an SSH config file.

Callers 1

parseWithDepthFunction · 0.85

Calls 1

CleanMethod · 0.45

Tested by

no test coverage detected