Would it be possible to do this with python?
Would it be possible to do this with python?
You can use the shutil library
Please note that it has a warning about the inability to copy metadata, you may find other problems depending on your OS.
The best solution would be to write the Bash copy script in linux or shell (cmd) on windows and call the routine from within Python using subprocess . It can be as simple as:
import subprocess
in_dir = #"pasta a copiar"
out_dir = #"local de destino"
rotina = ["cp",in_dir,out_dir] # exemplo usando Bash
processo = subprocess.run(rotina)