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

Checking if a container is private #300

Open
sausin opened this issue Mar 14, 2020 · 0 comments
Open

Checking if a container is private #300

sausin opened this issue Mar 14, 2020 · 0 comments

Comments

@sausin
Copy link

sausin commented Mar 14, 2020

Hi,

I was trying to go through the source code but it wasn't immediately clear if it was possible to check if a container is private or not (using the SDK).

When using swift command stat on a container, the following difference is observed

  • public container
Read ACL: .r:*,.rlistings
  • private container
Read ACL: 

on newly created containers where permissions have not been adjusted. This allows for one to figure out if a container is private or not.

Is it possible to get this property on the container through the SDK? Executing getMetadata() on the container only provides one key (for Temp-Url-Key).

It would be great to get some insight on this.

Thanks!

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