Fix docstring for update_directory_tree

This commit is contained in:
Masen Furer 2025-02-06 12:27:32 -08:00
parent a11cd51c69
commit cd6cbc6640
No known key found for this signature in database
GPG Key ID: B0008AD22B3B3A95

View File

@ -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")