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

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