Skip to content

Instantly share code, notes, and snippets.

@ntata
Created September 1, 2016 14:34
Show Gist options
  • Save ntata/eac949df609c7c7ae062f1e320cf7d39 to your computer and use it in GitHub Desktop.
Save ntata/eac949df609c7c7ae062f1e320cf7d39 to your computer and use it in GitHub Desktop.
#created a conatiner
swift@saio2-nt:~$ swift post test_container
#created my testObject at /home/swift/testObject
swift@saio2-nt:cat testObject
#changing directory different from the object to uplaod
swift@saio2-nt:~$ cd swift/
#uploading test_object to test_container using a path
swift@saio2-nt:~/swift$ swift upload test_container /home/swift/testObject
home/swift/testObject
#object is named after the path
swift@saio2-nt:~/swift$ swift list test_container
home/swift/testObject
#instead, if I add --object-name option, I can give a meaningful a name to the object
swift@saio2-nt:~/swift$ swift upload test_container --object-name test_object_name /home/swift/testObject
test_object_name
#object is created with given object name
swift@saio2-nt:~/swift$ swift list test_container
home/swift/testObject
test_object_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment