MCPcopy Create free account
hub / github.com/Card-Forge/forge / getParent

Method getParent

forge-core/src/main/java/forge/util/FileUtil.java:316–321  ·  view source on GitHub ↗
(final String resourcePath)

Source from the content-addressed store, hash-verified

314 }
315
316 public static String getParent(final String resourcePath) {
317 File f = new File(resourcePath);
318 if (f.getParentFile().getName() != null)
319 return f.getParentFile().getName();
320 return "";
321 }
322}

Callers 15

runMethod · 0.95
addMissingItemsMethod · 0.95
removeSelectedDataMethod · 0.45
readMethod · 0.45
readMethod · 0.45
considerMethod · 0.45
considerSecondTargetMethod · 0.45
chkDrawbackMethod · 0.45
getDamagingSAToChainMethod · 0.45
targetAIMethod · 0.45
shuffleTargetAIMethod · 0.45

Calls 1

getNameMethod · 0.65

Tested by

no test coverage detected