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