NewFileIter takes a storer.EncodedObjectStorer and a Tree and returns a *FileIter that iterates over all files contained in the tree, recursively.
(s storer.EncodedObjectStorer, t *Tree)
| 81 | // NewFileIter takes a storer.EncodedObjectStorer and a Tree and returns a |
| 82 | // *FileIter that iterates over all files contained in the tree, recursively. |
| 83 | func NewFileIter(s storer.EncodedObjectStorer, t *Tree) *FileIter { |
| 84 | return &FileIter{s: s, w: *NewTreeWalker(t, true, nil)} |
| 85 | } |
| 86 | |
| 87 | // Next moves the iterator to the next file and returns a pointer to it. If |
| 88 | // there are no more files, it returns io.EOF. |