Copy File

    0

    5

    Python public recipes

    This command moves the file source_file.txt from its original location to the destination_file.txt.

    Shortcut: file.move

    import shutil
    
    shutil.move('source_file.txt', 'dest_file.txt')
    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.