Skip to content

Commit

Permalink
Do 1Gb file updates
Browse files Browse the repository at this point in the history
  • Loading branch information
raulikak committed Apr 26, 2024
1 parent b267376 commit c4d3337
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tcsfw/client_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,11 @@ def copy_to_zipfile(self, files: List[pathlib.Path], temp_file: BinaryIO) -> boo
continue
# skip too large files
file_size_mb = file.stat().st_size // (1024 * 1024)
if file_size_mb > 16:
self.logger.warning("File too large: %s (%d > 16 M)", file.as_posix(), file_size_mb)
if file_size_mb > 1024:
self.logger.warning("File too large: %s (%d > 1024 M)", file.as_posix(), file_size_mb)
continue
# write content
self.logger.info("Adding %s", file.as_posix())
zip_info = zipfile.ZipInfo(file.name)
with file.open("rb") as file_data:
with zip_file.open(zip_info, "w") as of:
Expand Down

0 comments on commit c4d3337

Please sign in to comment.