43
44
_DIR_ATTR = stat.S_IFDIR | ZIP_DIRECTORY_BIT | DIR_PERMISSIONS
46
def zip_exporter(tree, dest, root, subdir, filtered=False,
47
def zip_exporter(tree, dest, root, subdir=None, filtered=False, force_mtime=None):
48
48
""" Export this tree to a new zip file.
50
50
`dest` will be created holding the contents of this tree; if it
51
51
already exists, it will be overwritten".
57
54
compression = zipfile.ZIP_DEFLATED
58
57
zipf = zipfile.ZipFile(dest, "w", compression)
61
59
for dp, ie in _export_iter_entries(tree, subdir):