]> git.r.bdr.sh - rbdr/blog/blob - src/archiver/raw.rs
Improve the error handling
[rbdr/blog] / src / archiver / raw.rs
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 archive(archive_directory: &PathBuf, _: &PathBuf, target: &PathBuf, _: &TemplateContext) -> Result<()> {
7 if archive_directory.exists() {
8 return recursively_copy(archive_directory, target);
9 }
10 Ok(())
11 }