MCPcopy Index your code
hub / github.com/ccxt/ccxt / getRootDir

Method getRootDir

java/tests/src/main/java/tests/BaseTest.java:604–614  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

602 }
603
604 public static String getRootDir() {
605 var prefix = FileSystems.getDefault().getPath("").toAbsolutePath();
606// var res = prefix + "/../../../../../" ;
607// return res;
608 if (prefix.endsWith("java")) {
609 return prefix + "/../";
610 } else if (prefix.endsWith("tests")) {
611 return prefix + "/../../";
612 }
613 return prefix + "/../../../../../";
614 }
615
616 public static Object ioFileRead(Object path2) {
617 if (!(path2 instanceof String)) {

Callers 5

expandSettingsMethod · 0.80
loadMarketsFromFileMethod · 0.80
initOfflineExchangeMethod · 0.80
runStaticTestsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected