(map: &PlaceholderMap, path: &Path, base_dir: &Path)
| 167 | } |
| 168 | |
| 169 | fn resolve_path(map: &PlaceholderMap, path: &Path, base_dir: &Path) -> PathBuf { |
| 170 | let path: PathBuf = resolve(map, path.to_str().unwrap()).into_owned().into(); |
| 171 | if !has_placeholders(path.to_str().unwrap()) { |
| 172 | normalize_path(&path, base_dir) |
| 173 | } else { |
| 174 | path |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | /// Adds the given base `directory` to the `path`, if it's not already absolute. |
| 179 | pub fn normalize_path(path: &Path, directory: &Path) -> PathBuf { |
no test coverage detected