download everything in a directory swift tool

Asked by victor

is it possible to download everything in a directory?

I have the following hierachy, container->directory. I notice that a directory is simply a prefix of the directory to the file name.

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Tomasz 'Zen' Napierala (tzn) said :
#1

You would have to write some wrapper on swift, to recursively download files.

Revision history for this message
victor (victor-tey) said :
#2

Thanks Tomasz 'Zen' Napierala, that solved my question.

Revision history for this message
Tomasz 'Zen' Napierala (tzn) said :
#3

Looks like I was wrong. Using swift tool you can download everything in a directory:
swift -A https://x.x.x.x:8080/auth/v1.0 -U system:root -K pass download container_name

Revision history for this message
victor (victor-tey) said :
#4

that will download everything in a container but not from a "directory" within the container.

Revision history for this message
Tomasz 'Zen' Napierala (tzn) said :
#5

All right, so you simulate directories using file prefix? I misunderstood. If so, follow my initial advice ;)

Can you help with this problem?

Provide an answer of your own, or ask victor for more information if necessary.

To post a message you must log in.