From 1f3257da70277380172c52ba17f1ca15a73b065b Mon Sep 17 00:00:00 2001 From: tommady Date: Wed, 16 Jul 2025 12:26:02 +0000 Subject: [PATCH] add doc for utils copy_dir Signed-off-by: tommady --- src/utils/fs.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/fs.rs b/src/utils/fs.rs index 59a11cb..4752e63 100644 --- a/src/utils/fs.rs +++ b/src/utils/fs.rs @@ -210,6 +210,7 @@ pub fn try_infer_extension(path: &Path) -> Option { } } +/// Copy the src directory into the dst directory recursively pub fn copy_dir(src: &Path, dst: &Path) -> crate::Result<()> { for entry in fs::read_dir(src)? { let entry = entry?;