mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* Update win_copy for #32677 enable large zip file support in win_copy * Update win_copy.py
This commit is contained in:
parent
9c0275a879
commit
6d597ac05a
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ class ActionModule(ActionBase):
|
||||||
def _create_zip_tempfile(self, files, directories):
|
def _create_zip_tempfile(self, files, directories):
|
||||||
tmpdir = tempfile.mkdtemp()
|
tmpdir = tempfile.mkdtemp()
|
||||||
zip_file_path = os.path.join(tmpdir, "win_copy.zip")
|
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
|
# 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
|
# filename and get the right name, Windows doesn't handle unicode names
|
||||||
|
|
Loading…
Reference in a new issue