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