useful snippets
General Info
Useful Snippets

14.0.3 Copy a file to a new location

Description:

You may need to copy files from one location to another so that files saved by one application are accessable to another application that is running somewhere else. Here is how to copy files between locations

Example:

import shutil

import_filepath = "C:\\path\\to\\import_file.txt"
export_filepath = "C:\\path\\to\\export_file.txt"

copy_file = shutil.copyfile(import_filepath , export_filepath)