获取操作系统路径类型 @return
()
| 103 | * @return |
| 104 | */ |
| 105 | public static String getOsPathType() { |
| 106 | String osPathType = FILE_SEPARATOR; |
| 107 | if ("\\".equals(osPathType)) { |
| 108 | return "\\\\"; |
| 109 | } |
| 110 | if ("/".equals(osPathType)) { |
| 111 | return "/"; |
| 112 | } |
| 113 | return null; |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * 获取操作系统类型名称 |