polishing
This commit is contained in:
@@ -285,7 +285,7 @@ public class FIleChecker {
|
||||
|
||||
List<Folder> folderList = List.of();
|
||||
|
||||
log.info("[FIND_FOLDER] DIR : {} {} {} {}",dirPath,sortType,maxDepth,startPath);
|
||||
log.info("[FIND_FOLDER] DIR : {} {} {} {}", dirPath, sortType, maxDepth, startPath);
|
||||
|
||||
int childDirCount = getChildFolderCount(startPath.toFile());
|
||||
log.info("[FIND_FOLDER] START_PATH_CHILD_DIR_COUNT : {}", childDirCount);
|
||||
@@ -294,8 +294,12 @@ public class FIleChecker {
|
||||
folderList =
|
||||
stream
|
||||
.filter(Files::isDirectory)
|
||||
.filter(p -> !p.toAbsolutePath().normalize().equals(startPath.toAbsolutePath().normalize()))
|
||||
.map(
|
||||
.filter(
|
||||
p ->
|
||||
!p.toAbsolutePath()
|
||||
.normalize()
|
||||
.equals(startPath.toAbsolutePath().normalize()))
|
||||
.map(
|
||||
path -> {
|
||||
int depth = path.getNameCount();
|
||||
|
||||
|
||||
@@ -338,7 +338,7 @@ public class MapSheetMngService {
|
||||
|
||||
String dirPath = syncRootDir + srchDto.getDirPath();
|
||||
|
||||
log.info("[FIND_FOLDER] DIR : {}",dirPath);
|
||||
log.info("[FIND_FOLDER] DIR : {}", dirPath);
|
||||
List<FIleChecker.Folder> folderList =
|
||||
FIleChecker.getFolderAll(dirPath).stream()
|
||||
.filter(dir -> dir.getIsValid().equals(true))
|
||||
|
||||
Reference in New Issue
Block a user