| 1537 | } |
| 1538 | |
| 1539 | fn get_escaped_path(&self, string_path: String) -> String { |
| 1540 | let mut escaped_path = string_path.clone(); |
| 1541 | let path = Path::new(&string_path); |
| 1542 | |
| 1543 | if path.exists() { |
| 1544 | escaped_path = self.canonicalize_path(path.to_path_buf()); |
| 1545 | } |
| 1546 | if !string_path.eq(&escaped_path) { |
| 1547 | self.get_logger().trace(format!( |
| 1548 | "Path {} has been escaped to {}", |
| 1549 | string_path, escaped_path |
| 1550 | )); |
| 1551 | } |
| 1552 | escaped_path |
| 1553 | } |
| 1554 | |
| 1555 | fn get_proxy(&self) -> &str { |
| 1556 | self.get_config().proxy.as_str() |