Python | Create Archives and Find Files by Name
In this article, we will learn how to create or unpack archives in common formats (e.g., .tar, .tgz, or .zip) using shutil module. The shutil module has two functions â make_archive() and unpack_archive() â that can exactly be the solution. Code #1 : import shutil shutil.unpack_archive('Python-3.3.0