Merge pull request #1002 from vmihailenco/fix/rx-isdir-path

rackspace: pass full path to the isdir.
This commit is contained in:
Matt Martz 2015-10-01 10:59:43 -05:00
commit 45c5b4bf4b

View file

@ -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 = []