String tmpPath = "C:/Tmp";
mac은 예제에 있는 경로가 맞지 않아 아래 에러가 발생합니다.
Caused by: java.io.IOException: No such file or directory
그래서 올바른 홈 경로를 변경해줘야 합니다.
아래의 경로로 변경
String tmpPath = System.getProperty("user.home") + "/Temp";
이렇게 경로를 바꿔주시면 /Users/{username}
경로에 정상적으로 생성됩니다.
혹시 모르는 분이 계실까봐 작성해둡니다.