From 6d597ac05a799aad2c9cecc1eb966d77af6d78f8 Mon Sep 17 00:00:00 2001 From: u625030 Date: Thu, 9 Nov 2017 21:34:29 +0100 Subject: [PATCH] Update win_copy for #32677 (#32682) * Update win_copy for #32677 enable large zip file support in win_copy * Update win_copy.py --- lib/ansible/plugins/action/win_copy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/win_copy.py b/lib/ansible/plugins/action/win_copy.py index 09cca23c15..b5013812f8 100644 --- a/lib/ansible/plugins/action/win_copy.py +++ b/lib/ansible/plugins/action/win_copy.py @@ -233,7 +233,7 @@ class ActionModule(ActionBase): def _create_zip_tempfile(self, files, directories): tmpdir = tempfile.mkdtemp() zip_file_path = os.path.join(tmpdir, "win_copy.zip") - zip_file = zipfile.ZipFile(zip_file_path, "w") + zip_file = zipfile.ZipFile(zip_file_path, "w", zipfile.ZIP_STORED, True) # encoding the file/dir name with base64 so Windows can unzip a unicode # filename and get the right name, Windows doesn't handle unicode names