add loopFile

This commit is contained in:
Looly
2019-08-22 13:50:23 +08:00
parent e2c0d13c88
commit 8d449c9fc2
3 changed files with 84 additions and 14 deletions

View File

@@ -231,6 +231,15 @@ public class FileUtilTest {
Console.log(file.getPath());
}
}
@Test
@Ignore
public void loopFilesWithDepthTest() {
List<File> files = FileUtil.loopFiles(FileUtil.file("d:/m2_repo"), 2, null);
for (File file : files) {
Console.log(file.getPath());
}
}
@Test
public void getParentTest() {