Answers for "python copy folder with subfolders"

2

python copy dir

from shutil import copytree
shutil.copytree("sourcedir", "destination")
Posted by: Guest on February-26-2021
0

copy directory from one location to another python

# Source path 
src = 'C:/Users / Rajnish / Desktop / GeeksforGeeks / source'
   
# Destination path 
dest = 'C:/Users / Rajnish / Desktop / GeeksforGeeks / destination'
   
# Copy the content of 
# source to destination 
destination = shutil.copytree(src, dest)
Posted by: Guest on April-14-2021

Code answers related to "python copy folder with subfolders"

Python Answers by Framework

Browse Popular Code Answers by Language