Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Aug 6, 2023
1 parent 0f767e7 commit ffb21a3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions core/src/docs/upgrade.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# Unreleased

## Public API

### RFC-2774 Lister API

RFC-2774 proposes a new `lister` API to replace current `list` and `scan`. And we add a new API `list` to return entries directly.

For users who want to list a directory at once, please use `Operator::list` and `Operator::list_with` for convenience.

For users who want to list a directory in streaming, please use `Operator::lister` and `Operator::lister_with` instead.

# Upgrade to v0.39

## Public API
Expand Down
10 changes: 10 additions & 0 deletions core/src/types/operator/operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,14 @@ impl Operator {
///
/// # Notes
///
/// ## For listing recursively
///
/// This function only read the children of the given directory. To read
/// all entries recursively, use `Operator::list_with("path").delimiter("")`
/// instead.
///
/// ## For streaming
///
/// This function will read all entries in the given directory. It could
/// take very long time and consume a lot of memory if the directory
/// contains a lot of entries.
Expand Down Expand Up @@ -1310,6 +1318,8 @@ impl Operator {
///
/// # Notes
///
/// ## For streaming
///
/// This function will read all entries in the given directory. It could
/// take very long time and consume a lot of memory if the directory
/// contains a lot of entries.
Expand Down

0 comments on commit ffb21a3

Please sign in to comment.