made a small change in the _object_job function in order to have the initial foward slash stripped off an object name when one exits

This commit is contained in:
Marcelo Martins 2011-07-28 22:32:40 +00:00
parent b6a3767efb
commit 6bd22e7223

View File

@ -1607,6 +1607,8 @@ def st_upload(options, args, print_queue, error_queue):
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: