62
61
def _loader(tree, dest, root, subdir, filtered, force_mtime, fileobj):
63
62
func = pyutils.get_named_object(module, funcname)
64
return func(tree, dest, root, subdir, filtered=filtered,
63
return func(tree, dest, root, subdir, filtered=filtered,
65
64
force_mtime=force_mtime, fileobj=fileobj)
66
66
register_exporter(scheme, extensions, _loader)
68
69
def get_export_generator(tree, dest=None, format=None, root=None, subdir=None,
69
70
filtered=False, per_file_timestamps=False,
71
72
"""Returns a generator that exports the given tree.
73
74
The generator is expected to yield None while exporting the tree while the
74
75
actual export is written to ``fileobj``.