()
| 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)) { |
no outgoing calls
no test coverage detected