Added some basic file archiving functionality

This commit is contained in:
Gregory Ballantine
2022-08-31 18:05:00 -04:00
parent 0fa83eff42
commit b979850582
2 changed files with 56 additions and 6 deletions

View File

@@ -16,5 +16,13 @@ impl Transcoder {
pub fn start(self) {
println!("Starting transcoder...");
// search for files in ingest
let ingest_files = self.repository.search_ingest();
for i in ingest_files {
// copy the file to the archive
self.repository.archive_file(i);
}
}
}