()
| 155 | } |
| 156 | |
| 157 | public static File getClientRoot() { |
| 158 | String path = System.getProperty("user.home", "."); |
| 159 | File root = new File(path, "trsstd"); |
| 160 | path = System.getProperty("com.trsst.client.storage"); |
| 161 | if (path != null) { |
| 162 | try { |
| 163 | root = new File(path); |
| 164 | root.mkdirs(); |
| 165 | } catch (Throwable t) { |
| 166 | System.err.println("Invalid path: " + path + " : " |
| 167 | + t.getMessage()); |
| 168 | } |
| 169 | } |
| 170 | return root; |
| 171 | } |
| 172 | |
| 173 | public static File getServerRoot() { |
| 174 | String path = System.getProperty("user.home", "."); |
no outgoing calls
no test coverage detected