copy_path
copy_path(path_src: str | Path, path_dst: str | Path) -> None
-
Description: Copies a file.
-
Parameters
- path_src (
str | Path): Source file path (must be a file). - path_dst (
str | Path): Destination path.
- path_src (
-
Exceptions
- ValueError: Raised when
path_srcis not a file.
- ValueError: Raised when
-
Example
from capybara.utils import copy_path
path_src = '/path/to/your/source'
path_dst = '/path/to/your/destination'
copy_path(path_src, path_dst)