moveDirectory#

pyCGM2.Utils.files.moveDirectory(src: str, dst: str) → None#

Move a directory ‘src’ into the directory ‘dst’. If ‘dst’ exists, ‘src’ will be added as a subdirectory of ‘dst’. If a directory with the same name already exists in ‘dst’, it will be replaced.

Parameters:
  • src (str) – The source directory path.

  • dst (str) – The destination directory path.