import shutil
      
      shutil.move('source_file.txt', 'dest_file.txt')
      Python language logo

      Copy File

      Python public recipes

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

      Shortcut: file.move

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.