PyDocs

Nav

File and Directory Access

register_archive_format

shutil

function (source)
  • register_archive_format(name, function[, extra_args[, description]])
Registers an archive format.

name is the name of the format. function is the callable that will be
used to create archives. If provided, extra_args is a sequence of
(name, value) tuples that will be passed as arguments to the callable.
description can be provided to describe the format, and will be returned
by the get_archive_formats() function.
Changed in 3.12
  • 3.12: Added support for functions supporting the root_dir argument.
0 Examples
No examples for shutil/register_archive_format.
See Also
No see-alsos for shutil/register_archive_format
0 Notes
No notes for register_archive_format