Skip to content

Commit

Permalink
Split zip file; * 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob-the-Git committed Sep 2, 2022
1 parent 6bbd06c commit 542feb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ def main():

CHUNK_SIZE = 1024 * 1024 * 1024
file_number = 1
with open(zip) as f:
with open(zip, 'rb') as f:
chunk = f.read(CHUNK_SIZE)
while chunk:
with open(zip + "." + str(file_number)) as chunk_file:
with open(zip + "." + str(file_number), 'wb') as chunk_file:
chunk_file.write(chunk)
print('volume: ' + zip + "." + str(file_number))
upload(zip + "." + str(file_number))
file_number += 1
chunk = f.read(CHUNK_SIZE)
Expand Down

0 comments on commit 542feb9

Please sign in to comment.