(info FileInfo)
| 36 | } |
| 37 | |
| 38 | func (ancestors *ancestorDirList) Contains(info FileInfo) bool { |
| 39 | l.Debugf("ancestorDirList: Contains '%s'", info.Name()) |
| 40 | for _, ancestor := range ancestors.list { |
| 41 | if ancestors.fs.SameFile(info, ancestor) { |
| 42 | return true |
| 43 | } |
| 44 | } |
| 45 | return false |
| 46 | } |
| 47 | |
| 48 | // WalkFunc is the type of the function called for each file or directory |
| 49 | // visited by Walk. The path argument contains the argument to Walk as a |