Skip to content

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

Merged
haphan merged 1 commit into
php-opencloud:masterfrom
icewind1991:patch-1
Feb 15, 2018
Merged

Add 'subdir' as alias for 'name' in StorageObject#214
haphan merged 1 commit into
php-opencloud:masterfrom
icewind1991:patch-1

Conversation

@icewind1991

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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
Copy Markdown
ContributorAuthor

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:masterFeb 15, 2018
@haphan

Copy link
Copy Markdown
Collaborator

thanks @icewind1991

@haphan

Copy link
Copy Markdown
Collaborator

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

Sign up for freeto 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

@icewind1991@haphan