We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d969b96 commit 2aa3fe7Copy full SHA for 2aa3fe7
fsspec/implementations/zip.py
@@ -56,6 +56,7 @@ def __init__(
56
fo = fsspec.open(
57
fo, mode=m, protocol=target_protocol, **(target_options or {})
58
)
59
+ self.force_zip_64 = allowZip64
60
self.of = fo
61
self.fo = fo.__enter__() # the whole instance is a context
62
self.zip = zipfile.ZipFile(
@@ -125,7 +126,7 @@ def _open(
125
126
raise FileNotFoundError(path)
127
if "r" in self.mode and "w" in mode:
128
raise OSError("ZipFS can only be open for reading or writing, not both")
- out = self.zip.open(path, mode.strip("b"))
129
+ out = self.zip.open(path, mode.strip("b"), force_zip64=self.force_zip_64)
130
if "r" in mode:
131
info = self.info(path)
132
out.size = info["size"]
0 commit comments