Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(bindings/ruby): add lister #5600

Merged
merged 3 commits into from
Feb 10, 2025
Merged

Conversation

erickguan
Copy link
Contributor

Which issue does this PR close?

Part of #5227.

}

/// Lists the directory recursively.
pub fn scan(ruby: &Ruby, rb_self: &Self, path: String) -> Result<Lister, Error> {
Copy link
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
Contributor 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
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
35 checks passed
@erickguan erickguan deleted the ruby-binding-list branch February 10, 2025 13:09
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants