MCPcopy Create free account
hub / github.com/0opslab/opslabJutil / createPaths

Method createPaths

src/main/java/com/opslab/util/FileUtil.java:383–386  ·  view source on GitHub ↗

创建多级目录 @param paths 需要创建的目录 @return 是否成功

(String paths)

Source from the content-addressed store, hash-verified

381 * @return 是否成功
382 */
383 public final static boolean createPaths(String paths) {
384 File dir = new File(paths);
385 return !dir.exists() && dir.mkdir();
386 }
387
388 /**
389 * 创建文件支持多级目录

Callers 4

testCreatePathMethod · 0.95
testCreatePathMethod · 0.95
copyDirMethod · 0.95
unCompressMethod · 0.95

Calls

no outgoing calls

Tested by 2

testCreatePathMethod · 0.76
testCreatePathMethod · 0.76