I noticed that when you create new pseudo folder, you have a "/" after the folder's name, I tried without the slash and got following result, as you can see without the slash the pseudo folder get overwritten. Does this mean the pseudo folder's name must be followed by a "/" ?
add a file with the same name as the pseudo folder:
curl -XPUT http://10.211.55.102:8080/v1/AUTH_test/test/psuedo-1 -Hcontent-type:text/plain --data-binary '1234' -Hx-auth-token:d94abbc396094eeaa02da16cdbab5fbb
I noticed that when you create new pseudo folder, you have a "/" after the folder's name, I tried without the slash and got following result, as you can see without the slash the pseudo folder get overwritten. Does this mean the pseudo folder's name must be followed by a "/" ?
create a new container:
curl -XPUT http:// 10.211. 55.102: 8080/v1/ AUTH_test/ test -Hx-auth- token:d94abbc39 6094eeaa02da16c dbab5fbb
add new pseudo folder 10.211. 55.102: 8080/v1/ AUTH_test/ test/psuedo- 1 -Hcontent- type:applicatio n/directory -Hcontent-length:0 -Hx-auth- token:d94abbc39 6094eeaa02da16c dbab5fbb
curl -XPUT http://
list objects: 10.211. 55.102: 8080/v1/ AUTH_test/ test?format= json -Hx-auth- token:d94abbc39 6094eeaa02da16c dbab5fbb | python -mjson.tool
curl http://
{
"content_ type": "application/ directory" , 04e9800998ecf84 27e",
"last_ modified" : "2012-08- 01T18:11: 04.739910" ,
"bytes": 0,
"hash": "d41d8cd98f00b2
"name": "psuedo-1"
}
add a file with the same name as the pseudo folder: 10.211. 55.102: 8080/v1/ AUTH_test/ test/psuedo- 1 -Hcontent- type:text/ plain --data-binary '1234' -Hx-auth- token:d94abbc39 6094eeaa02da16c dbab5fbb
curl -XPUT http://
list the objects: 10.211. 55.102: 8080/v1/ AUTH_test/ test?format= json -Hx-auth- token:d94abbc39 6094eeaa02da16c dbab5fbb | python -mjson.tool
"content_ type": "text/plain", c20036dbd8313ed 055",
"last_ modified" : "2012-08- 01T18:13: 45.011280" ,
curl http://
{
"bytes": 4,
"hash": "81dc9bdb52d04d
"name": "psuedo-1"
}