3
3
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
4
4
__docformat__ = 'restructuredtext en'
7
7
from calibre.utils import zipfile
9
9
def update(pathtozip, patterns, filepaths, names, compression=zipfile.ZIP_DEFLATED, verbose=True):
12
12
`patterns` with the given `filepaths`. If more than
15
15
:param patterns: A list of compiled regular expressions
16
16
:param filepaths: A list of paths to the replacement files. Must have the
17
17
same length as `patterns`.
19
19
A name can be `None` in which case the name of the existing
20
20
file in the archive is used.
21
21
:param compression: The compression to use when replacing files. Can be