shutil.get_archive_formats()

shutil.get_archive_formats()

Return a list of supported formats for archiving. Each element of the returned sequence is a tuple (name, description).

By default shutil provides these formats:

  • gztar: gzip’ed tar-file
  • bztar: bzip2’ed tar-file (if the bz2 module is available.)
  • xztar: xz’ed tar-file (if the lzma module is available.)
  • tar: uncompressed tar file
  • zip: ZIP file

You can register new formats or provide your own archiver for any existing formats, by using register_archive_format().

doc_python
2016-10-07 17:41:55
Comments
Leave a Comment

Please login to continue.