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

chore(Directory): add DirIterator API restriction: iterate only once #54

Merged
merged 1 commit into from Aug 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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