Java Temp Directory Get getTempDir(String path)

Here you can find the source of getTempDir(String path)

Description

get Temp Dir

License

Apache License

Declaration

public static File getTempDir(String path) throws Exception 

Method Source Code

//package com.java2s;

import java.io.File;

public class Main {
    public static File getTempDir(String path) throws Exception {
        File tempdir = new File(System.getProperty("java.io.tmpdir"), path);
        tempdir.mkdirs();/*from w w w. j  a va 2 s  .  c o  m*/
        return tempdir;
    }
}

Related

  1. getTempDir(File baseDir)
  2. getTempDir(final String directory, final String prefix, boolean autodelete)
  3. getTempDir(Object fileID, String fileName)
  4. getTempDir(String desc)
  5. getTempDir(String name, String prefix, File parentDir)
  6. getTempDir(String prefix)
  7. getTempDir(String suffix)
  8. getTempDirectory()
  9. getTempDirectory()