allow downloading a pseudo folder to specific target

Registered by Dirk Petersen

imagine I want to download the contents of a pseudo-folder (e.g. /container1/pseudo1/pseudo2/pseudo3) to a certain local directory /loc. If swift was a posix fs this would be easy using rsync. let's say I wanted to copy over everything below pseudo2 to /loc. I could run
rsync /container/pseudo1/pseudo2 /loc and would get /loc/pseudo3
I could also add a trailing slash to the target:
rsync /container/pseudo1/pseudo2 /loc/ and would get /loc/pseudo2/pseudo3

but if I want to do this using the swift client I have do cd to the target directory and then run this command:
swift download --prefix=pseudo1/pseudo2 container1
but this does not result into /loc/pseudo2 as one would expect or in /loc/pseudo3 as perhaps expected but in /loc/pseudo1.... (as not expected)

all users (actually looking over their shoulder) find this confusing. We try to work around this issue using a wrapper
https://github.com/FredHutch/swift-commander/blob/master/bin/swc#L423
but of course this is a hack and we cannot use --skip-identical any more which is kind of an issue if you try to shuffle many terabyte around.

Please add an option such as --target to swift download !

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Dirk Petersen
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/swiftclient-download-pseudo-folder-to-specific-target,n,z

Addressed by: https://review.openstack.org/160283
    Add ability to download objects to particular folder.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.