IT'S DO
728x90

Windows : C:\Users\User\AppData\Local\Temp

Linux : /temp

 

# 사용 방법 

1. System.getProperty("java.io.tmpdir")

System.getProperty("java.io.tmpdir") tmp dir 경로를 리턴함.

 

public class til {

    

public static void main(String[] args) {

         String tmpDir = System.getProperty("java.io.tmpdir");

         System.out.println("tmp= " + tmpDir);

    }

}

 

# 로그 값

=> tmp= /tmp

profile

IT'S DO

@멋진놈

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!