diff --git a/src/internal/files.rs b/src/internal/files.rs index 91bcad2..0523fb2 100755 --- a/src/internal/files.rs +++ b/src/internal/files.rs @@ -32,7 +32,9 @@ pub fn copy_file(path: &str, destpath: &str) { pub fn append_file(path: &str, content: &str) -> std::io::Result<()> { log::info!("Append '{}' to file {}", content.trim_end(), path); let mut file = OpenOptions::new().append(true).open(path)?; + file.write_all("\n".as_bytes())?; file.write_all(content.as_bytes())?; + file.write("\n".as_bytes())?; Ok(()) }