From: John Spray Date: Mon, 9 Nov 2015 13:08:41 +0000 (+0000) Subject: pybind: fix mkdir_p in ceph_volume_client X-Git-Tag: v10.0.3~16^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4557349a753e6cdf185004947eec64f34372dd01;p=ceph.git pybind: fix mkdir_p in ceph_volume_client Signed-off-by: John Spray --- diff --git a/src/pybind/ceph_volume_client.py b/src/pybind/ceph_volume_client.py index 6734e4072aa6..12ab59a62495 100644 --- a/src/pybind/ceph_volume_client.py +++ b/src/pybind/ceph_volume_client.py @@ -425,7 +425,8 @@ class CephFSVolumeClient(object): else: return - parts = os.path.split(path) + parts = path.split(os.path.sep) + for i in range(1, len(parts) + 1): subpath = os.path.join(*parts[0:i]) try: