add doc for utils copy_dir

Signed-off-by: tommady <tommady@users.noreply.github.com>
This commit is contained in:
tommady 2025-07-16 12:26:02 +00:00
parent 1c622ff52a
commit 1f3257da70
No known key found for this signature in database
GPG Key ID: 175B664929DF2F2F

View File

@ -210,6 +210,7 @@ pub fn try_infer_extension(path: &Path) -> Option<Extension> {
} }
} }
/// Copy the src directory into the dst directory recursively
pub fn copy_dir(src: &Path, dst: &Path) -> crate::Result<()> { pub fn copy_dir(src: &Path, dst: &Path) -> crate::Result<()> {
for entry in fs::read_dir(src)? { for entry in fs::read_dir(src)? {
let entry = entry?; let entry = entry?;