pythoncopytree

CopyTree method in python


I am using the copy tree library in python (example below) however I want the script to copy the whole folder and not just the contents inside the folder. Would addition or modification would I need to rectify this issue

  import copy_tree from distutils.dir_util 
  copy_tree(src, dst)

Solution

  • Create the folder with the same name at your destination, then use copy_tree?