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

S3Path implements getproperty but not propertynames #302

Open
ssfrr opened this issue Jul 12, 2023 · 0 comments
Open

S3Path implements getproperty but not propertynames #302

ssfrr opened this issue Jul 12, 2023 · 0 comments

Comments

@ssfrr
Copy link

ssfrr commented Jul 12, 2023

This makes is to the set of properties available with path.X doesn't match the ones you get with propertynames(path).

In particular you don't get key, which is a problem if you're trying to use properties to determine equality between paths:

julia> p1 = S3Path("s3://foo/bar")
p"s3://foo/bar"

julia> p2 = S3Path("s3://foo/baz")
p"s3://foo/baz"

julia> [getproperty(p1, s) for s in propertynames(p1)]
4-element Vector{String}:
 "s3://foo"
 "/"
 "s3://foo/"
 "/"

julia> [getproperty(p2, s) for s in propertynames(p2)]
4-element Vector{String}:
 "s3://foo"
 "/"
 "s3://foo/"
 "/"

julia> propertynames(p1)
(:drive, :root, :anchor, :separator)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant