(path: &Path, bytes: &[u8])
| 943 | |
| 944 | #[cfg(unix)] |
| 945 | fn create_symlink(path: &Path, bytes: &[u8]) -> Result<(), SplitSnapshotError> { |
| 946 | use std::os::unix::ffi::OsStringExt; |
| 947 | std::os::unix::fs::symlink(OsString::from_vec(bytes.to_vec()), path) |
| 948 | .map_err(RepositoryError::Io)?; |
| 949 | Ok(()) |
| 950 | } |
| 951 | |
| 952 | #[cfg(not(unix))] |
| 953 | fn create_symlink(_path: &Path, _bytes: &[u8]) -> Result<(), SplitSnapshotError> { |
no outgoing calls
no test coverage detected