모델,파일싱크 수정

This commit is contained in:
Moon
2026-01-23 18:29:58 +09:00
parent 1bb0ca2e40
commit d0d079f852
3 changed files with 21 additions and 7 deletions

View File

@@ -512,6 +512,16 @@ public class FIleChecker {
return FileSystemUtils.deleteRecursively(new File(path));
}
public static boolean deleteFile(String filePath) {
Path path = Paths.get(filePath);
try {
return Files.deleteIfExists(path);
} catch (IOException e) {
return false;
}
}
public static boolean validationMultipart(MultipartFile mfile) {
// 파일 유효성 검증
if (mfile == null || mfile.isEmpty() || mfile.getSize() == 0) {