|
@@ -188,9 +188,8 @@ impl FlowCells {
|
|
|
.with_context(|| format!("Failed to write FlowCells to: {archive_path}"))?;
|
|
.with_context(|| format!("Failed to write FlowCells to: {archive_path}"))?;
|
|
|
file.flush()?;
|
|
file.flush()?;
|
|
|
// file.get_ref().sync_all()?;
|
|
// file.get_ref().sync_all()?;
|
|
|
- std::fs::rename(&tmp_path, archive_path)?;
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ std::fs::copy(&tmp_path, archive_path)?;
|
|
|
|
|
+ std::fs::remove_file(tmp_path)?;
|
|
|
|
|
|
|
|
Ok(())
|
|
Ok(())
|
|
|
}
|
|
}
|