Skip to main content

copy_path

copy_path(path_src: Union[str, Path], path_dst: Union[str, Path]) -> None

  • Description: Copies a file or directory.

  • Parameters:

    • path_src (path_src: Union[str, Path]): Path of the file or directory to be copied.
    • path_dst (path_dst: Union[str, Path]): Destination path for the copied file or directory.
  • Example:

    import docsaidkit as D

    path_src = '/path/to/your/source'
    path_dst = '/path/to/your/destination'
    D.copy_path(path_src, path_dst)