pub fn verify_and_copy_files_async(
src: &Path,
dst: &Path,
) -> Result<(), SsgError>Expand description
Asynchronously validates and copies files between directories.
Uses iterative traversal with an explicit stack to avoid unbounded recursion.
Traversal depth is bounded by MAX_DIR_DEPTH.
ยงExamples
use ssg::fs_ops::verify_and_copy_files_async;
use tempfile::tempdir;
use std::fs;
let src = tempdir().unwrap();
let dst = tempdir().unwrap();
fs::write(src.path().join("x.txt"), "hi").unwrap();
verify_and_copy_files_async(src.path(), dst.path()).unwrap();
assert!(dst.path().join("x.txt").is_file());