Study/[Error]

The method moveFileToDirectory(File, File, boolean) is undefined for the type FileUtils

Nameless 2021. 1. 31. 14:35

BoardController.java

 

temp 폴더의 파일을 글 번호 이름으로 하는 폴더에 이동시키는 소스이다.

 

본래라면 

FileUtils.moveFileToDirectory(srcFile, destDir, boolean) 이지만

제목과 같은 오류가 발생하였고 구글링을 해도 나오지않았다ㅠ

 

moveFileToDirectory(srcFIle, destDir, true) 로 변경하였더니 오류가 발생하지 않는다