mkdir -p in collection_extract()
authorTom Clegg <tom@clinicalfuture.com>
Wed, 11 Sep 2013 23:01:04 +0000 (19:01 -0400)
committerTom Clegg <tom@clinicalfuture.com>
Sun, 15 Sep 2013 21:47:44 +0000 (17:47 -0400)
sdk/python/arvados.py

index a1b947850d70240c879ec06f19476be20e7e3044..5c547fa421da2dea93c25a7e9b82f6d915a99bbf 100644 (file)
@@ -340,6 +340,7 @@ class util:
                 files_got += [outname]
                 if os.path.exists(os.path.join(path, outname)):
                     continue
+                util.mkdir_dash_p(os.path.dirname(os.path.join(path, outname)))
                 outfile = open(os.path.join(path, outname), 'wb')
                 for buf in (f.readall_decompressed() if decompress
                             else f.readall()):