openfl.interface.cli_helper.copytree
- openfl.interface.cli_helper.copytree(src, dst, symlinks=False, ignore=None, ignore_dangling_symlinks=False, dirs_exist_ok=False)
From Python 3.8 ‘shutil’ which include ‘dirs_exist_ok’ option.
- Parameters:
src (str) – The source directory.
dst (str) – The destination directory.
symlinks (bool, optional) – Whether to copy symlinks. Defaults to False.
ignore (callable, optional) – A function that takes a directory name and filenames as input parameters and returns a list of names to ignore. Defaults to None.
ignore_dangling_symlinks (bool, optional) – Whether to ignore dangling symlinks. Defaults to False.
dirs_exist_ok (bool, optional) – Whether to raise an exception in case dst or any missing parent directory already exists. Defaults to False.