From a2abbb5433a7e2514a22427ff162d43d19f8fdb5 Mon Sep 17 00:00:00 2001 From: Lucas Molas Date: Tue, 2 Aug 2022 13:01:32 -0300 Subject: [PATCH] chore(Directory): add DirIterator API restriction: iterate only once --- file.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/file.go b/file.go index 4d7ef11..7ac1fc9 100644 --- a/file.go +++ b/file.go @@ -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: //