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

Method findSubRoot

code/src/java/pcgen/gui2/converter/LSTConverter.java:290–302  ·  view source on GitHub ↗
(File root, File in)

Source from the content-addressed store, hash-verified

288 }
289
290 private File findSubRoot(File root, File in)
291 {
292 File parent = in.getParentFile();
293 if (parent == null)
294 {
295 return null;
296 }
297 if (parent.getAbsolutePath().equals(root.getAbsolutePath()))
298 {
299 return parent;
300 }
301 return findSubRoot(root, parent);
302 }
303
304 private Optional<String> load(URI uri, Loader loader) throws PersistenceLayerException
305 {

Callers 1

startItemMethod · 0.95

Calls 1

equalsMethod · 0.65

Tested by

no test coverage detected