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

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