| 1519 | } |
| 1520 | |
| 1521 | fn get_escaped_path(&self, string_path: String) -> String { |
| 1522 | let mut escaped_path = string_path.clone(); |
| 1523 | let path = Path::new(&string_path); |
| 1524 | |
| 1525 | if path.exists() { |
| 1526 | escaped_path = self.canonicalize_path(path.to_path_buf()); |
| 1527 | } |
| 1528 | if !string_path.eq(&escaped_path) { |
| 1529 | self.get_logger().trace(format!( |
| 1530 | "Path {} has been escaped to {}", |
| 1531 | string_path, escaped_path |
| 1532 | )); |
| 1533 | } |
| 1534 | escaped_path |
| 1535 | } |
| 1536 | |
| 1537 | fn get_proxy(&self) -> &str { |
| 1538 | self.get_config().proxy.as_str() |