Copy directory recursively



    Python public recipes

    The code will copy all of the files and folders in 'source_directory' to 'destination_directory'.

    Shortcut: file.copy.directories

    import shutil
    shutil.copytree(source, destination)
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.