Create an iterator that will return every entry contained in the index at the time of creation. Entries are returned in order, sorted by path. This iterator is backed by a snapshot that allows callers to modify the index while iterating without affecting the iterator.
0 or an error code.