From 9e3dd1c552e3d8153a42cb2949d8ae917c16ab04 Mon Sep 17 00:00:00 2001 From: xyli Date: Fri, 3 Mar 2023 11:18:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9GIT=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/git/TestGit.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/test/java/git/TestGit.java b/src/test/java/git/TestGit.java index 4af7e00..697641b 100644 --- a/src/test/java/git/TestGit.java +++ b/src/test/java/git/TestGit.java @@ -27,4 +27,28 @@ // //public class TestGit { // +// @Test +// public void test() { +// +// } +// +// @Test +// public void test2() throws IOException { +// String fileOrDirPath = "D:\\jpom\\server\\data\\temp\\"; +// List strings = FileUtil.loopFiles(fileOrDirPath); +// System.out.println(strings.size()); +// for (File string : strings) { +// string.setWritable(true); +// try { +// Path path = Paths.get(string.getAbsolutePath()); +// Files.delete(path); +// } catch (Exception e) { +// System.out.println(e.getMessage()); +// } +// } +// FileUtil.clean(fileOrDirPath); +// Path path = Paths.get(fileOrDirPath); +// Files.delete(path); +// } +// //} -- Gitee