(path: &Path, bytes: Vec<u8>)
| 4444 | } |
| 4445 | |
| 4446 | async fn write_private_file(path: &Path, bytes: Vec<u8>) -> Result<(), std::io::Error> { |
| 4447 | tokio::fs::write(path, bytes).await?; |
| 4448 | restrict_owner_read_write(path).await |
| 4449 | } |
| 4450 | |
| 4451 | #[cfg(unix)] |
| 4452 | async fn restrict_owner_read_write(path: &Path) -> Result<(), std::io::Error> { |
no test coverage detected