optical.converter.utils.copyfile¶
-
optical.converter.utils.copyfile(src: Union[str, os.PathLike], dest: Union[str, os.PathLike], filename: Optional[Union[str, os.PathLike]] = None) → None[source]¶ copies a file from one path to another
- Parameters
src (Union[str, os.PathLike]) – either a directory containing files or any filepath.
dest (Union[str, os.PathLike]) – the output directory for the copy.
filename (Optional[Union[str, os.PathLike]], optional) – If
srcis a directory, the name of the file to copy. Defaults to None.