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

Add 'subdir' as alias for 'name' in StorageObject #214

Merged
merged 1 commit into from
Feb 15, 2018

Conversation

icewind1991
Copy link
Contributor

When listing objects with delimiter=/ the response for any sub directory will only contain {"subdir": "folder/"}

Without this alias there is no way get a list of sub directories (without listing all objects)

When listing objects with `delimiter=/` the response for any sub directory will only contain `{"subdir": "folder/"}`

Without this alias there is no way get a list of sub directories (without listing *all* objects)
@haphan
Copy link
Collaborator

haphan commented Feb 12, 2018

PR LGTM, however, subdir is not documented anywhere as far as I can see.

@icewind1991 Do you have any document explains this field?

Ref: https://bugs.launchpad.net/swift/+bug/1505768

@icewind1991
Copy link
Contributor Author

I couldn't find any documentation about this, I figured it out when debugging an upgrade from the old php-opencloud which does handle it

@haphan haphan merged commit 0a0b2ec into php-opencloud:master Feb 15, 2018
@haphan
Copy link
Collaborator

haphan commented Feb 15, 2018

thanks @icewind1991

@haphan
Copy link
Collaborator

haphan commented Feb 26, 2018

This issue has been backported to branch 2.x via #218

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

Successfully merging this pull request may close these issues.

2 participants