Python

Copy file in Python

Copy file in Python. Source file can be coppied to new file path or to new directory.

filecopy

Interactive recipe

You can use below interactive recipe to generate code. This recipe is available in MLJAR Studio.

Python code

# Python code will be here

Code explanation

  1. Copy file to new destination.

Please note that in this recipe you can select a file in the User Interface, which already means that file must exits. What to do, if file doesn't exist? Please select some other file in the same or similar directory, and manually edit the file path in the code.

Previous
Delete file