From 6bd22e7223217dc110993878b0c7857d28d7f4ce Mon Sep 17 00:00:00 2001 From: Marcelo Martins Date: Thu, 28 Jul 2011 22:32:40 +0000 Subject: [PATCH] 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 --- bin/swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/swift b/bin/swift index 3d9115780f..4138db8b17 100755 --- a/bin/swift +++ b/bin/swift @@ -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: