diff --git a/cloud/rackspace/rax_files_objects.py b/cloud/rackspace/rax_files_objects.py index f2510477674..93e65980ddc 100644 --- a/cloud/rackspace/rax_files_objects.py +++ b/cloud/rackspace/rax_files_objects.py @@ -271,7 +271,7 @@ def upload(module, cf, container, src, dest, meta, expires): if path != src: prefix = path.split(src)[-1].lstrip('/') filenames = [os.path.join(prefix, name) for name in filenames - if not os.path.isdir(name)] + if not os.path.isdir(os.path.join(path, name))] objs += filenames _objs = []