()
| 42 | } |
| 43 | |
| 44 | func (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 | |
| 55 | func (f FakeFileSystem) Glob(pattern string) ([]string, error) { |
| 56 | var matches []string |