MCPcopy Create free account
hub / github.com/PCGen/pcgen / stripOffRoot

Method stripOffRoot

code/src/java/pcgen/util/FileHelper.java:101–106  ·  view source on GitHub ↗
(File relative)

Source from the content-addressed store, hash-verified

99 }
100
101 private static String stripOffRoot(File relative)
102 {
103 String root = relative.toPath().getRoot().toString();
104
105 return relative.getAbsolutePath().substring(root.length());
106 }
107}

Callers 1

findRelativePathMethod · 0.95

Calls 2

toStringMethod · 0.65
getRootMethod · 0.45

Tested by

no test coverage detected