MCPcopy Create free account
hub / github.com/ReZeroS/git / mkdir

Method mkdir

src/main/java/club/qqtim/util/FileUtil.java:45–52  ·  view source on GitHub ↗
(String dirName)

Source from the content-addressed store, hash-verified

43
44
45 public static void mkdir(String dirName) {
46 boolean mkdir = new File(dirName).mkdir();
47 if (mkdir) {
48 log.info("Init {} directory in .zit repository", Paths.get(Objects.requireNonNull(FileUtil.getCurrentDir()), dirName));
49 } else {
50 log.info("Create directory failed, please check your access right.");
51 }
52 }
53
54 public static String getCurrentDir() {
55 File file = new File(".");

Callers 2

initRootMethod · 0.95
initObjectsMethod · 0.95

Calls 1

getCurrentDirMethod · 0.95

Tested by

no test coverage detected