MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / getParent

Method getParent

vm/JavaAPI/src/java/io/File.java:92–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90 }
91
92 public String getParent() {
93 int index = path.lastIndexOf(separatorChar);
94 if (index < 0) return null;
95 return path.substring(0, index);
96 }
97
98 public File getParentFile() {
99 String p = getParent();

Callers 3

getParentFileMethod · 0.95
buildMethod · 0.95

Calls 2

lastIndexOfMethod · 0.65
substringMethod · 0.65

Tested by

no test coverage detected