aboutsummaryrefslogtreecommitdiff
path: root/src/archiver/raw.rs
blob: c3dc1cf098bd2de89619dc8111a1fa36aa437e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::template::TemplateContext;
use crate::utils::recursively_copy;
use std::io::Result;
use std::path::Path;

pub fn archive(
    archive_directory: &Path,
    _: &Path,
    target: &Path,
    _: &TemplateContext,
) -> Result<()> {
    if archive_directory.exists() {
        return recursively_copy(archive_directory, target);
    }
    Ok(())
}