Skip to content

Commit e406801

Browse files
corneliusroemerivan-aksamentov
authored andcommitted
fix(#183): create data_temp if not present
1 parent 0809d97 commit e406801

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

scripts/lib/fs.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
import json
44
import os
55
import shutil
6-
from os import walk, listdir, makedirs
7-
from os.path import dirname, join, abspath, isdir, isfile, islink, relpath
6+
from os import listdir, makedirs, walk
7+
from os.path import abspath, dirname, isdir, isfile, islink, join, relpath
88
from typing import List
9+
910
from repro_zipfile import ReproducibleZipFile
1011

1112

@@ -77,6 +78,8 @@ def ensure_dir(file_path):
7778

7879

7980
def make_zip(input_dir: str, output_zip: str):
81+
os.makedirs(dirname(output_zip), exist_ok=True)
82+
8083
with ReproducibleZipFile(output_zip, "w") as z:
8184
for root, dirs, files in os.walk(input_dir):
8285
for file in files:

0 commit comments

Comments
 (0)