左斜杆路径转为系统路径(如: file/f/f/) @param path 路径
(String path)
| 355 | * @param path 路径 |
| 356 | */ |
| 357 | public static String toSystemPath(String path){ |
| 358 | String systemPath = ""; |
| 359 | if(path != null && !path.trim().isEmpty()){ |
| 360 | return path.replace("/", File.separator); |
| 361 | |
| 362 | |
| 363 | } |
| 364 | return systemPath; |
| 365 | } |
| 366 | |
| 367 | /** |
| 368 | * 左斜杆路径转为URL路径(如: file/a/b/转为file%2Fa%2Fb/) %2F为左斜杆的URL转义 |
no test coverage detected