(src, dest)
Roughly equivalent to cp -r src/* dest
Roughly equivalent to cp -r src/* dest
Roughly equivalent to cp - r src / * dest
def CopyTreeRecursively(src, dest):
  """Roughly equivalent to cp -r src/* dest"""
  MakeDirectoryIfNotExist(dest)
  for entry in os.listdir(src):
    s = pjoin(src, entry)
    d = pjoin(dest, entry)
    if os.path.isdir(s):
      CopyTreeRecursively(s, d)
    else:
      shutil.copy(s, d)
def CopyTreeRecursively ( src , dest ) : MakeDirectoryIfNotExist ( dest ) for entry in os . listdir ( src ) : s = pjoin ( src , entry ) d = pjoin ( dest , entry ) if os . path . isdir ( s ) : CopyTreeRecursively ( s , d ) else : shutil . copy ( s , d )