diff --git a/src/export.rs b/src/export.rs index 2377bf0..52c6934 100644 --- a/src/export.rs +++ b/src/export.rs @@ -39,6 +39,7 @@ pub async fn export(vault: &Vault, room: String, file: &Path) -> anyhow::Result< } println!("Exported {exported_trees} trees, {exported_msgs} messages in total"); + file.flush()?; Ok(()) }