Skip to content

Checking if a container is private #300

Description

@sausin

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions