Comment 1 for bug 817766

Revision history for this message
Marcelo Martins (btorch) wrote :

=== modified file 'bin/swift'
--- bin/swift 2011-07-07 14:24:37 +0000
+++ bin/swift 2011-07-28 22:29:36 +0000
@@ -1607,6 +1607,8 @@
             obj = path
             if obj.startswith('./') or obj.startswith('.\\'):
                 obj = obj[2:]
+ if obj.startswith('/'):
+ obj = obj[1:]
             put_headers = {'x-object-meta-mtime': str(getmtime(path))}
             if dir_marker:
                 if options.changed: