sendtree#

maize.utilities.io.sendtree(files: dict[T, Path], dest: Path, mode: Literal['move', 'copy', 'link'] = 'copy') dict[T, Path][source]#

Links, copies or moves multiple files to a destination directory and preserves the structure.

Parameters:
  • files – Paths to link / copy

  • dest – Destination directory

  • mode – Whether to link, copy or move the files

Returns:

Created links / copies

Return type:

dict[Any, Path]