src/backup/archive_index.rs: implement flush()

This commit is contained in:
Dietmar Maurer
2018-12-31 18:01:07 +01:00
parent 0433db1949
commit 94a882e900
3 changed files with 21 additions and 3 deletions

View File

@ -11,7 +11,6 @@ use proxmox_backup::api::router::*;
//use proxmox_backup::backup::image_index::*;
//use proxmox_backup::config::datastore;
use proxmox_backup::catar::encoder::*;
use proxmox_backup::backup::chunker::*;
use proxmox_backup::backup::datastore::*;
use serde_json::{Value};
@ -44,7 +43,7 @@ fn backup_dir(
// .truncate(true)
// .open("mytest.catar")?;
let mut index = datastore.create_archive_writer(&target, chunk_size)?;
let index = datastore.create_archive_writer(&target, chunk_size)?;
let path = std::path::PathBuf::from(path);