I have a directory/folder which contains multiple files and folders(or you can say sub-folders). I want to copy one folder from the directory and paste it inside another directory/folder. I tried copytree and copy_tree which is available in shutil and dist_utils respectively which copy's entire content of the folder but I don't know how to use it in my scenario. I don't want to copy files executing commands using python. I am sharing example folder structure
#source folder
test_directory:
│ sample.txt
│
├───source
│ test.txt
│
├───source2
└───source3
sample3.txt
#destination folder
destination_directory
│ sample.txt
│
└───dest
so assume I want to move folder name "source" from test_directory folder to destination_directory folder.
so after copying folder to destination folder my folder structure should look like
destination_directory
│ sample.txt
│
├───dest
└───source
test.txt