We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf0a468 commit 58d89c6Copy full SHA for 58d89c6
comfy_cli/file_utils.py
@@ -110,11 +110,12 @@ def zip_files(zip_filename):
110
111
with zipfile.ZipFile(zip_filename, "w", zipfile.ZIP_DEFLATED) as zipf:
112
for root, dirs, files in os.walk("."):
113
- if ".git" in dirs: # Still skip .git directory
+ if ".git" in dirs:
114
dirs.remove(".git")
115
for file in files:
116
file_path = os.path.join(root, file)
117
- if zip_filename in file_path: # Skip the zip file itself
+ # Skip zipping the zip file itself
118
+ if zip_filename in file_path:
119
continue
120
relative_path = os.path.relpath(file_path, start=".")
121
zipf.write(file_path, relative_path)
0 commit comments