Skip to content

feat(bindings/ruby): add lister#5600

Merged
Xuanwo merged 3 commits intoapache:mainfrom
erickguan:ruby-binding-list
Feb 10, 2025
Merged

feat(bindings/ruby): add lister#5600
Xuanwo merged 3 commits intoapache:mainfrom
erickguan:ruby-binding-list

Conversation

@erickguan
Copy link
Copy Markdown
Member

Which issue does this PR close?

Part of #5227.

@erickguan erickguan requested a review from PsiACE as a code owner February 2, 2025 16:26
@github-actions github-actions bot added the releases-note/feat The PR implements a new feature or has a title that begins with "feat" label Feb 2, 2025
}

/// Lists the directory recursively.
pub fn scan(ruby: &Ruby, rb_self: &Self, path: String) -> Result<Lister, Error> {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, scan has been deprecated, and bindings should not expose such an API. Instead, the list function should accept an argument that allows setting recursive: true.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed.

Copy link
Copy Markdown
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @erickguan for working on this!

@Xuanwo Xuanwo merged commit 415a288 into apache:main Feb 10, 2025
@erickguan erickguan deleted the ruby-binding-list branch February 10, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/feat The PR implements a new feature or has a title that begins with "feat"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants