From cd6cbc6640e80bf1f4f238702d854de5d7c26112 Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Thu, 6 Feb 2025 12:27:32 -0800 Subject: [PATCH] Fix docstring for update_directory_tree --- reflex/utils/path_ops.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/reflex/utils/path_ops.py b/reflex/utils/path_ops.py index c85810544..92557d801 100644 --- a/reflex/utils/path_ops.py +++ b/reflex/utils/path_ops.py @@ -266,8 +266,12 @@ def update_directory_tree(src: Path, dest: Path): """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. - :param src: Source directory (Path object) - :param dest: Destination directory (Path object) + Args: + src: Source directory + dest: Destination directory + + Raises: + ValueError: If the source is not a directory """ if not src.is_dir(): raise ValueError(f"Source {src} is not a directory")