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

Method mkdirs

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

Source from the content-addressed store, hash-verified

181 private native boolean mkdirImpl(String path);
182
183 public boolean mkdirs() {
184 if (exists()) {
185 return false;
186 }
187 if (mkdir()) {
188 return true;
189 }
190 File p = getParentFile();
191 return (p != null && (p.mkdirs() || p.exists()) && mkdir());
192 }
193
194 public boolean renameTo(File dest) {
195 return renameToImpl(path, dest.getPath());

Callers 15

writeRootRegistryMethod · 0.95
captureMethod · 0.95
captureCurrentScreenMethod · 0.95
cropFrameMethod · 0.95
shotMethod · 0.95
heroMethod · 0.95
captureMethod · 0.95
shotMethod · 0.95
mainMethod · 0.95
runTestMethod · 0.95

Calls 3

existsMethod · 0.95
mkdirMethod · 0.95
getParentFileMethod · 0.95

Tested by 15

captureMethod · 0.76
captureCurrentScreenMethod · 0.76
cropFrameMethod · 0.76
shotMethod · 0.76
heroMethod · 0.76
captureMethod · 0.76
shotMethod · 0.76
mainMethod · 0.76
runTestMethod · 0.76