test
This commit is contained in:
@@ -582,7 +582,7 @@ public class FileManagerService {
|
|||||||
|
|
||||||
Path directory = Paths.get(directoryPath);
|
Path directory = Paths.get(directoryPath);
|
||||||
if (!Files.exists(directory)) {
|
if (!Files.exists(directory)) {
|
||||||
log.debug("디렉토리가 존재하지 않습니다: {}", directoryPath);
|
log.info("디렉토리가 존재하지 않습니다: {}", directoryPath);
|
||||||
return FileManagerDto.StorageSpaceRes.builder()
|
return FileManagerDto.StorageSpaceRes.builder()
|
||||||
.directoryPath(directoryPath)
|
.directoryPath(directoryPath)
|
||||||
.fileCount(0)
|
.fileCount(0)
|
||||||
@@ -600,7 +600,7 @@ public class FileManagerService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!Files.isDirectory(directory)) {
|
if (!Files.isDirectory(directory)) {
|
||||||
log.debug("디렉토리 경로가 아닙니다: {}", directoryPath);
|
log.info("디렉토리 경로가 아닙니다: {}", directoryPath);
|
||||||
return FileManagerDto.StorageSpaceRes.builder()
|
return FileManagerDto.StorageSpaceRes.builder()
|
||||||
.directoryPath(directoryPath)
|
.directoryPath(directoryPath)
|
||||||
.fileCount(0)
|
.fileCount(0)
|
||||||
@@ -642,7 +642,7 @@ public class FileManagerService {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
log.debug("디렉토리 용량 계산 중 오류 발생: {}", directoryPath, e);
|
log.error("디렉토리 용량 계산 중 오류 발생: {}", directoryPath, e);
|
||||||
return FileManagerDto.StorageSpaceRes.builder()
|
return FileManagerDto.StorageSpaceRes.builder()
|
||||||
.directoryPath(directoryPath)
|
.directoryPath(directoryPath)
|
||||||
.fileCount(0)
|
.fileCount(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user