MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / relativize

Method relativize

src/main/java/fieldbox/io/IO.java:812–825  ·  view source on GitHub ↗
(String q)

Source from the content-addressed store, hash-verified

810 q = q.substring(q.lastIndexOf("{{"));
811 }
812
813 while (q.contains("//")) q = q.replace("//", "/");
814
815 String q2 = q.replace(defaultDirectory, WORKSPACE)
816 .replace(templateDirectory, TEMPLATES);
817 return q2;
818
819
820 }
821
822 public String findTemplateCalled(String name) {
823 String q = findTemplateCalled(name, templateDirectory);
824 if (q != null) return q;
825 q = findTemplateCalled(name, defaultDirectory);
826 return q;
827 }
828

Callers 2

toExternalMethod · 0.95
makeFilenameForMethod · 0.95

Calls 2

replaceMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected