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

object_store: Clarify what is a prefix in list() documentation #6520

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

progval
Copy link
Contributor

@progval progval commented Oct 7, 2024

Which issue does this PR close?

none, this is a very small change

Rationale for this change

It should be obvious to reader that foo/bar/ is not a prefix of foo/bar_baz, because it is true whether they think in term of strings, S3-like API paths, or POSIX-like paths.

What is less clear is that foo/bar is also not a prefix of foo/bar_baz, because this is not true with strings or S3-like API paths, only of POSIX-like paths.

Additionally, the definition of paths
(https://docs.rs/object_store/0.11.0/object_store/path/struct.Path.html) says that paths cannot have a trailing /.

What changes are included in this PR?

Replace the foo/bar/ example prefix with foo/bar

Are there any user-facing changes?

only the documentation

@github-actions github-actions bot added the object-store Object Store Interface label Oct 7, 2024
It should be obvious to reader that `foo/bar/` is not a prefix of
`foo/bar_baz`, because it is true whether they think in term of
strings, S3-like API paths, or POSIX-like paths.

What is less clear is that `foo/bar` is also not a prefix of `foo/bar_baz`,
because this is not true with strings or S3-like API paths, only of
POSIX-like paths.

Additionally, the definition of paths
(https://docs.rs/object_store/0.11.0/object_store/path/struct.Path.html)
says that paths cannot have a trailing `/`.
Copy link
Contributor

@tustvold tustvold left a comment

Choose a reason for hiding this comment

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

I have seen this multiple times and meant to change it, and then promptly forgot. Thank you 😄

@tustvold tustvold merged commit 1a9ac2c into apache:master Oct 7, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
object-store Object Store Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants