MCPcopy Create free account
hub / github.com/awslabs/amazon-eks-ami / allPaths

Method allPaths

nodeadm/internal/system/filesystem.go:44–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44func (f FakeFileSystem) allPaths() map[string]bool {
45 paths := make(map[string]bool)
46 for path := range f.Files {
47 paths[path] = true
48 for dir := filepath.Dir(path); dir != "/" && dir != "."; dir = filepath.Dir(dir) {
49 paths[dir] = true
50 }
51 }
52 return paths
53}
54
55func (f FakeFileSystem) Glob(pattern string) ([]string, error) {
56 var matches []string

Callers 1

GlobMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected