Added some basic file archiving functionality
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user