| 1548 | } |
| 1549 | |
| 1550 | fn get_escaped_path(&self, string_path: String) -> String { |
| 1551 | let mut escaped_path = string_path.clone(); |
| 1552 | let path = Path::new(&string_path); |
| 1553 | |
| 1554 | if path.exists() { |
| 1555 | escaped_path = self.canonicalize_path(path.to_path_buf()); |
| 1556 | } |
| 1557 | if !string_path.eq(&escaped_path) { |
| 1558 | self.get_logger().trace(format!( |
| 1559 | "Path {} has been escaped to {}", |
| 1560 | string_path, escaped_path |
| 1561 | )); |
| 1562 | } |
| 1563 | escaped_path |
| 1564 | } |
| 1565 | |
| 1566 | fn get_proxy(&self) -> &str { |
| 1567 | self.get_config().proxy.as_str() |