copy_package#

pyconverter.xml2py.writer.copy_package(template_path, new_package_path, clean=False, include_hidden=False)#

Add files and directory from a template directory path to a new path.

Parameters:
template_pathstr

Path containing the directory to copy.

new_package_pathstr

Path containing the directory where the new files and directorys are to be added.

cleanbool, optional

Whether the directories in the path for the new package must be cleared before adding new files. The default is False.

include_hiddenbool, optional

Whether to handle hidden files automatically when the Python version is 3.11 or later. The default is False.

Returns:
str

Path containing the source files of the created xml-commands package.