Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

refactor(types/operator): rename is_exist to exists #5193

Merged
merged 3 commits into from
Oct 17, 2024
Merged

Conversation

photino
Copy link
Contributor

@photino photino commented Oct 17, 2024

Which issue does this PR close?

Closes #5192.

Rationale for this change

Rename it to exists for consistence with std::fs::exists

What changes are included in this PR?

Introduces exists and deprecate is_exist in core/types/operator

Are there any user-facing changes?

Yes, it is a breaking change.

@photino photino requested a review from PsiACE as a code owner October 17, 2024 03:52
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.

Others LGTM!

@@ -16,7 +16,7 @@ As a side-effect of this design, OpenDAL always return exist for `stat("not_exis
There are some issues and pull requests related to those issues.

- [Invalid metadata for dir objects in s3](https://github.com/apache/opendal/issues/3199)
- [`is_exist` always return true for key end with '/', in S3 service](https://github.com/apache/opendal/issues/2086)
- [`exists` always return true for key end with '/', in S3 service](https://github.com/apache/opendal/issues/2086)
Copy link
Member

Choose a reason for hiding this comment

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

Hi, please don't change existing docs.

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!

@Xuanwo Xuanwo merged commit 926e351 into apache:main Oct 17, 2024
233 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new feature: rename is_exist to exists
2 participants