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

Method pathCombine

forge-core/src/main/java/forge/util/FileUtil.java:53–57  ·  view source on GitHub ↗

Takes two paths and combines them into a valid path string for the current OS. Similar to the Path.Combine() function in .Net.

(String path1, String path2)

Source from the content-addressed store, hash-verified

51 * Similar to the Path.Combine() function in .Net.
52 */
53 public static String pathCombine(String path1, String path2) {
54 File file1 = new File(path1);
55 File file2 = new File(file1, path2);
56 return file2.getPath();
57 }
58
59 /**
60 * <p>

Callers 2

getReleaseNotesMethod · 0.95
getFileMethod · 0.95

Calls 1

getPathMethod · 0.45

Tested by

no test coverage detected