Java Temp Folder Create getTempFolder()

Here you can find the source of getTempFolder()

Description

get Temp Folder

License

Apache License

Declaration

public static String getTempFolder() 

Method Source Code

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

import java.io.File;

public class Main {
    public static String getTempFolder() {

        File tempFolder = new File(System.getProperty("user.dir") + "\\temp");
        if (!tempFolder.exists()) {
            tempFolder.mkdirs();//from w  ww .  java  2  s .  c  o  m
        }
        return tempFolder.getPath() + File.separator;
    }
}

Related

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