We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e406801 + 7131fff commit 0400bd4Copy full SHA for 0400bd4
1 file changed
scripts/lib/fs.py
@@ -78,11 +78,11 @@ def ensure_dir(file_path):
78
79
80
def make_zip(input_dir: str, output_zip: str):
81
- os.makedirs(dirname(output_zip), exist_ok=True)
+ ensure_dir(output_zip)
82
83
with ReproducibleZipFile(output_zip, "w") as z:
84
for root, dirs, files in os.walk(input_dir):
85
- for file in files:
+ for file in sorted(files):
86
if not file.endswith(".zip"):
87
filepath = join(root, file)
88
arcpath = relpath(filepath, input_dir)
0 commit comments