Revision 7912c553
b/pithos/lib/client.py | ||
---|---|---|
307 | 307 |
"""creates a dierectory marker""" |
308 | 308 |
if not object: |
309 | 309 |
raise Fault('Directory markers have to be nested in a container') |
310 |
h = {'Content-Type':'application/directory'}
|
|
310 |
h = {'content_type':'application/directory'}
|
|
311 | 311 |
return self.create_zero_length_object(container, object, **h) |
312 | 312 |
|
313 |
def create_directory_marker(self, container, object): |
|
314 |
"""creates a dierectory marker""" |
|
315 |
return self.create_object(container, object, f=None) |
|
316 |
|
|
317 | 313 |
def create_object(self, container, object, f=stdin, format='text', meta={}, |
318 | 314 |
etag=None, content_type=None, content_encoding=None, |
319 | 315 |
content_disposition=None, **headers): |
Also available in: Unified diff