src/catar/encoder.rs: fix binary format, write goodby table

We still ned to sort the table (BST) ...
This commit is contained in:
Dietmar Maurer
2018-12-28 14:26:05 +01:00
parent 03fb895197
commit a0cc09b5f0
3 changed files with 82 additions and 25 deletions

View File

@ -37,7 +37,11 @@ fn backup_dir(
}
// fixme: implement chunked writer
let writer = std::fs::File::create("mytest.catar")?;
let writer = std::fs::OpenOptions::new()
.create(true)
.write(true)
.truncate(true)
.open("mytest.catar")?;
let path = std::path::PathBuf::from(path);