File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -618,7 +618,9 @@ pub trait AsyncFileSystem: FileSystem {
618618 /// the file system did not return a `Handle` from `opendir` then the contents of `handle` are
619619 /// undefined.
620620 ///
621- /// `size` indicates the maximum number of bytes that should be returned by this method.
621+ /// `size` indicates the maximum number of bytes that should be returned by this method,
622+ /// but can be ignored in practice. Instead, entries are returned by calling the
623+ /// `add_entry` function until it returns zero (indicating that the buffer is full).
622624 ///
623625 /// If `offset` is non-zero then it corresponds to one of the `offset` values from a `DirEntry`
624626 /// that was previously returned by a call to `readdir` for the same handle. In this case the
Original file line number Diff line number Diff line change @@ -634,7 +634,10 @@ pub trait FileSystem {
634634 /// the file system did not return a `Handle` from `opendir` then the contents of `handle` are
635635 /// undefined.
636636 ///
637- /// `size` indicates the maximum number of bytes that should be returned by this method.
637+ /// `size` indicates the maximum number of bytes that should be returned by this method,
638+ /// but can be ignored in practice. Instead, entries are returned by calling the
639+ /// `add_entry` function until it returns zero (indicating that the buffer is full).
640+ ///
638641 ///
639642 /// If `offset` is non-zero then it corresponds to one of the `offset` values from a `DirEntry`
640643 /// that was previously returned by a call to `readdir` for the same handle. In this case the
You can’t perform that action at this time.
0 commit comments