Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
chore(Directory): add DirIterator API restriction: iterate only once
Browse files Browse the repository at this point in the history
  • Loading branch information
schomatis authored and lidel committed Aug 31, 2022
1 parent 88b4692 commit 0889edb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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 0889edb

Please sign in to comment.