MCPcopy
hub / github.com/dianping/cat / createDir

Method createDir

lib/java/src/main/java/com/dianping/cat/util/Files.java:105–111  ·  view source on GitHub ↗
(File dir)

Source from the content-addressed store, hash-verified

103 }
104
105 public void createDir(File dir) {
106 if (!dir.exists()) {
107 if (!dir.mkdirs()) {
108 throw new RuntimeException(String.format("Cant' create directory(%s)!", dir));
109 }
110 }
111 }
112
113 public boolean delete(File file) {
114 return delete(file, false);

Callers 4

copyDirMethod · 0.95
copyFileMethod · 0.95
writeToMethod · 0.80
copyDirMethod · 0.80

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected