(src: &Path, dest: &Path)
| 393 | /// Unix has a dedicated definition; everything else falls back below. |
| 394 | #[cfg(unix)] |
| 395 | fn recreate_symlink(src: &Path, dest: &Path) -> std::io::Result<()> { |
| 396 | let link_target = std::fs::read_link(src)?; |
| 397 | std::os::unix::fs::symlink(link_target, dest) |
| 398 | } |
| 399 | |
| 400 | /// Non-Unix fallback: symlink creation needs special privileges, so copy the |
| 401 | /// file the link resolves to (correct content-wise). |
no outgoing calls
no test coverage detected