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

Method emptyCurrentDir

src/main/java/club/qqtim/util/FileUtil.java:144–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142
143
144 public static void emptyCurrentDir() {
145 File file = new File(ConstantVal.BASE_PATH);
146 final String[] paths = file.list();
147 if (paths != null) {
148 Arrays.stream(paths).forEach(path -> {
149 if (ZitContext.isNotIgnored(path)) {
150 FileUtil.deleteDir(path);
151 }
152 });
153 }
154 }
155
156
157 public static boolean isFile(String path) {

Callers 1

checkoutIndexMethod · 0.80

Calls 2

isNotIgnoredMethod · 0.95
deleteDirMethod · 0.95

Tested by

no test coverage detected