Revision 9f74ca46 kamaki/clients/storage.py
b/kamaki/clients/storage.py | ||
---|---|---|
116 | 116 |
def create_directory(self, object): |
117 | 117 |
self.assert_container() |
118 | 118 |
path = path4url(self.account, self.container, object) |
119 |
self.put(path, data='', directory=True, success=201) |
|
119 |
self.headers.setdefault('Content-Type', 'application/directory') |
|
120 |
self.headers.setdefault('Content-length', '0') |
|
121 |
self.put(path, success=201) |
|
120 | 122 |
|
121 | 123 |
def get_object_info(self, object): |
122 | 124 |
self.assert_container() |
Also available in: Unified diff