MCPcopy Create free account
hub / github.com/TrsstProject/trsst / getClientRoot

Method getClientRoot

src/main/java/com/trsst/Common.java:157–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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", ".");

Callers 3

doPullMethod · 0.95
doPostMethod · 0.95
getStorageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected