polishing

This commit is contained in:
2026-02-24 20:14:47 +09:00
parent 815ee57e06
commit 7128eb007e
2 changed files with 8 additions and 4 deletions

View File

@@ -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();

View File

@@ -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))