Impl binstall_v1::append

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-07-27 23:15:46 +10:00
parent d796424199
commit 7ccbdb2356
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -105,6 +105,13 @@ where
write_to(&mut file, &mut iter.into_iter())
}
pub fn append<Iter>(iter: Iter) -> Result<(), Error>
where
Iter: IntoIterator<Item = MetaData>,
{
append_to_path(default_path()?, iter)
}
pub fn write_to(
file: &mut FileLock,
iter: &mut dyn Iterator<Item = MetaData>,