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