Skip to content

Commit

Permalink
chore(Directory): add DirIterator API restriction: iterate only once
Browse files Browse the repository at this point in the history
This commit was moved from ipfs/go-ipfs-files@0889edb
  • Loading branch information
schomatis authored and lidel committed Aug 31, 2022
1 parent 4ebe090 commit 7418db2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion files/file.go
Expand Up @@ -63,7 +63,9 @@ type DirIterator interface {
type Directory interface {
Node

// Entries returns a stateful iterator over directory entries.
// Entries returns a stateful iterator over directory entries. The iterator
// may consume the Directory state so it must be called only once (this
// applies specifically to the multipartIterator).
//
// Example usage:
//
Expand Down

0 comments on commit 7418db2

Please sign in to comment.