Java Temp Folder Create getTempFolderPath()

Here you can find the source of getTempFolderPath()

Description

get Temp Folder Path

License

Apache License

Declaration

public static String getTempFolderPath() 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.File;

public class Main {
    public static String getTempFolderPath() {
        String tempPath = System.getProperty("java.io.tmpdir");
        if (tempPath.endsWith(Character.toString(File.separatorChar))) {
            tempPath = tempPath.substring(0, tempPath.length() - 1);
        }/*from   w  w  w .  j  a va 2s  .  c  om*/
        return tempPath;
    }
}

Related

  1. getTempFolder()
  2. getTempFolder()
  3. GetTempFolder()
  4. getTempFolder()
  5. getTempFolder(String TEMP_FOLDER_NAME)
  6. getTempFolderPath()
  7. getTempPath()
  8. getTempPath()
  9. GetTempPath()