aboutsummaryrefslogtreecommitdiff
path: root/src/archiver/raw.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/archiver/raw.rs')
-rw-r--r--src/archiver/raw.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/archiver/raw.rs b/src/archiver/raw.rs
new file mode 100644
index 0000000..5099f2b
--- /dev/null
+++ b/src/archiver/raw.rs
@@ -0,0 +1,11 @@
+use std::io::Result;
+use std::path::PathBuf;
+use crate::template::TemplateContext;
+use crate::utils::recursively_copy;
+
+pub fn archive(archive_directory: &PathBuf, _: &PathBuf, target: &PathBuf, _: &TemplateContext) -> Result<()> {
+ if archive_directory.exists() {
+ return recursively_copy(archive_directory, target);
+ }
+ Ok(())
+}