ewoksxrpd.tasks.utils.zip_utils.open_in_zipfile#
- ewoksxrpd.tasks.utils.zip_utils.open_in_zipfile(zipf, filename, **kwargs)[source]#
Same as zipfile.ZipFile.open but with a fixed name argument that ensures the file timestamp and permissions would be equivalent as with python’s open function when creating a file.
- Parameters:
zipf (
ZipFile)filename (
Union[str,Path])
- Return type:
Generator[BufferedIOBase,None,None]