zipfiles.py script explanation

This commit is contained in:
Chev 2021-04-20 21:37:12 -07:00
parent 7c5eb929db
commit 0dbafca5d3

View file

@ -1,6 +1,10 @@
import os
import zipfile
# zipfiles.py
# Takes all folders in the .thunderstore/ folder and puts them into .zip files
# Essentially prepares mods for uploading to Thunderstore
def zipfiles(z_obj, dir):
for root, dirs, files in os.walk(dir):
for file in files: