(path: PathBuf)
| 5 | use std::path::{Path, PathBuf}; |
| 6 | |
| 7 | pub fn absolute_path(path: PathBuf) -> PathBuf { |
| 8 | if path.is_absolute() { |
| 9 | path |
| 10 | } else { |
| 11 | let env = std::env::current_dir().unwrap(); |
| 12 | env.join(path) |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | pub fn create_symlink(symlink_path: &Path, target: &Path) -> crate::Result<()> { |
| 17 | if symlink_path.exists() { |
no outgoing calls
no test coverage detected