]>
Commit | Line | Data |
---|---|---|
1 | use std::io::Result; | |
2 | use std::path::PathBuf; | |
3 | use crate::template::TemplateContext; | |
4 | use crate::utils::recursively_copy; | |
5 | ||
6 | pub fn generate(source: &PathBuf, _: &PathBuf, target: &PathBuf, _: &TemplateContext) -> Result<()> { | |
7 | if source.exists() { | |
8 | return recursively_copy(source, target) | |
9 | } | |
10 | Ok(()) | |
11 | } |