More work on bacloud client

This commit is contained in:
Eric Froemling 2020-01-19 15:40:49 -08:00
parent 67bc2e6250
commit 3db48d4e39
2 changed files with 5 additions and 1 deletions

View File

@ -397,6 +397,7 @@
<w>dirname</w>
<w>dirnames</w>
<w>dirpath</w>
<w>dirpruneempty</w>
<w>dirtybit</w>
<w>dirtyfiles</w>
<w>disllowed</w>
@ -1282,6 +1283,7 @@
<w>projroot</w>
<w>projs</w>
<w>promocode</w>
<w>prunedir</w>
<w>prval</w>
<w>pstats</w>
<w>pstr</w>

View File

@ -329,7 +329,9 @@ class App:
import base64
import zlib
for fname, fdata in downloads_inline.items():
os.makedirs(os.path.dirname(fname), exist_ok=True)
dirname = os.path.dirname(fname)
if dirname:
os.makedirs(dirname, exist_ok=True)
data_zipped = base64.b64decode(fdata)
data = zlib.decompress(data_zipped)
with open(fname, 'wb') as outfile: