From 20619bcce7cbe3b0cfaebc7c4140da93556e9e2e Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 2 Feb 2017 11:40:24 -0800 Subject: [PATCH] send: set allowZip64=True, to handle large (>2GB) directories refs #138 --- src/wormhole/cli/cmd_send.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wormhole/cli/cmd_send.py b/src/wormhole/cli/cmd_send.py index d0a41bf..12dd3bb 100644 --- a/src/wormhole/cli/cmd_send.py +++ b/src/wormhole/cli/cmd_send.py @@ -221,7 +221,9 @@ class Sender: num_files = 0 num_bytes = 0 tostrip = len(what.split(os.sep)) - with zipfile.ZipFile(fd_to_send, "w", zipfile.ZIP_DEFLATED) as zf: + with zipfile.ZipFile(fd_to_send, "w", + compression=zipfile.ZIP_DEFLATED, + allowZip64=True) as zf: for path,dirs,files in os.walk(what): # path always starts with args.what, then sometimes might # have "/subdir" appended. We want the zipfile to contain