Extract zipfile

    0

    1

    Python public recipes

    The code creates a ZipFile object and extracts all files from the myfile.zip file.

    Shortcut: zipfile.extract

    import zipfile, os
    
    with zipfile.ZipFile(zipfile) as zip_file:
      zip_file.extractall()
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.