Fix docstring for update_directory_tree
This commit is contained in:
parent
a11cd51c69
commit
cd6cbc6640
@ -266,8 +266,12 @@ def update_directory_tree(src: Path, dest: Path):
|
|||||||
"""Recursively copies a directory tree from src to dest.
|
"""Recursively copies a directory tree from src to dest.
|
||||||
Only copies files if the destination file is missing or modified earlier than the source file.
|
Only copies files if the destination file is missing or modified earlier than the source file.
|
||||||
|
|
||||||
:param src: Source directory (Path object)
|
Args:
|
||||||
:param dest: Destination directory (Path object)
|
src: Source directory
|
||||||
|
dest: Destination directory
|
||||||
|
|
||||||
|
Raises:
|
||||||
|
ValueError: If the source is not a directory
|
||||||
"""
|
"""
|
||||||
if not src.is_dir():
|
if not src.is_dir():
|
||||||
raise ValueError(f"Source {src} is not a directory")
|
raise ValueError(f"Source {src} is not a directory")
|
||||||
|
Loading…
Reference in New Issue
Block a user