系统路径转为左斜杆路径(如: file/f/f/) @param path 路径
(String path)
| 342 | * @param path 路径 |
| 343 | */ |
| 344 | public static String toLeftSlant(String path){ |
| 345 | String systemPath = ""; |
| 346 | if(path != null && !path.trim().isEmpty()){ |
| 347 | return path.replace(File.separator,"/"); |
| 348 | |
| 349 | |
| 350 | } |
| 351 | return systemPath; |
| 352 | } |
| 353 | /** |
| 354 | * 左斜杆路径转为系统路径(如: file/f/f/) |
| 355 | * @param path 路径 |
no test coverage detected