]> git.r.bdr.sh - rbdr/blog/blob - src/generator/static_files.rs
Add tests for the archivers
[rbdr/blog] / src / generator / static_files.rs
1 use crate::template::Context;
2 use crate::utils::recursively_copy;
3 use std::io::Result;
4 use std::path::Path;
5
6 pub fn generate(source: &Path, _: &Path, target: &Path, _: &Context) -> Result<()> {
7 if source.exists() {
8 return recursively_copy(source, target);
9 }
10 Ok(())
11 }