프로그램 실행 환경에 알맞는 임시 폴더 경로를 가져오는 방법
임시 폴더 경로는 OS마다 다름.
- Windows : %USER%\AppData\Local\Temp
- Linux : /tmp
System.getProperty("java.io.tmpdir") 사용
String tmpPath = System.getProperty("java.io.tmpdir");
프로그램 실행 환경에 알맞는 임시 폴더 경로를 가져오는 방법
임시 폴더 경로는 OS마다 다름.
String tmpPath = System.getProperty("java.io.tmpdir");