]> git.r.bdr.sh - rbdr/blog/blame - src/archiver/raw.rs
Improve the error handling
[rbdr/blog] / src / archiver / raw.rs
CommitLineData
6352ebb0
RBR
1use std::io::Result;
2use std::path::PathBuf;
3use crate::template::TemplateContext;
4use crate::utils::recursively_copy;
5
6pub 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}