aboutsummaryrefslogtreecommitdiff
path: root/src/generator/static_files.rs
blob: 8c55de348b654cf9f53fc0b8c46934ec7893f687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::template::TemplateContext;
use crate::utils::recursively_copy;
use std::io::Result;
use std::path::PathBuf;

pub fn generate(
    source: &PathBuf,
    _: &PathBuf,
    target: &PathBuf,
    _: &TemplateContext,
) -> Result<()> {
    if source.exists() {
        return recursively_copy(source, target);
    }
    Ok(())
}