java.lang.IllegalArgumentException: Not a directory 에러 해결
String savePath="C:\\student\\"; File isDir = new File(savePath); if(!isDir.isDirectory()){ System.out.println("디렉토리가 없습니다. 디렉토리를 새로 생성합니다."); isDir.mkdir(); } System.out.println(savePath); 디렉토리가 없어서 생기는 문제폴더를 새로 만들어주면 됨 ㅎㅎ
JAVA 정리
2017. 6. 20. 23:08