(path: &Path, bytes: &[u8])
| 5012 | } |
| 5013 | |
| 5014 | pub(super) fn write_new_synced(path: &Path, bytes: &[u8]) -> Result<(), RepositoryError> { |
| 5015 | let mut file = OpenOptions::new().write(true).create_new(true).open(path)?; |
| 5016 | file.write_all(bytes)?; |
| 5017 | file.sync_all()?; |
| 5018 | Ok(()) |
| 5019 | } |
| 5020 | |
| 5021 | fn write_atomic_regular(path: &Path, bytes: &[u8], mode: u32) -> Result<(), RepositoryError> { |
| 5022 | let parent = path |
no test coverage detected