copyright | lastupdated | ||
---|---|---|---|
|
2017-02-23 |
{:new_window: target="_blank"} {:shortdesc: .shortdesc} {:codeblock: .codeblock} {:screen: .screen} {:pre: .pre}
Swift does not have a true directory structure, but uses naming to represent a directory layout. If you specify a directory name, it is attached to all file names as part of the relative path. {: shortdesc}
To add a directory to a container, you must have the directory structure in place on your local device.
-
Locally, create a directory and save your file.
-
Run the following command to upload a directory to your container.
swift upload <container_name> <directory_name>
{: pre}
To download a directory structure, use the -prefix
parameter to indicate the directory or directory structure that you want to download.
-
Run the following command to download a directory.
swift download <container_name> --prefix <directory>
{: pre}