Java Temp Directory Create makeTempDir(String prefix, String suffix)

Here you can find the source of makeTempDir(String prefix, String suffix)

Description

make Temp Dir

License

Apache License

Declaration

static File makeTempDir(String prefix, String suffix)
            throws IOException 

Method Source Code

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

import java.io.File;
import java.io.IOException;

public class Main {
    static File makeTempDir(String prefix, String suffix)
            throws IOException {
        final File instrDir = File.createTempFile(prefix, suffix);
        instrDir.delete();/*from  w ww .j  av  a 2  s. com*/
        instrDir.mkdir();
        return instrDir;
    }
}

Related

  1. createTempDirectory(String prefix)
  2. makeTempDir()
  3. makeTempDir(String name)
  4. makeTempDir(String prefix)
  5. makeTempDir(String prefix)
  6. makeTempDirectory(String dirName, boolean deleteIfExists)
  7. makeTempDirectory(String prefix, String suffix)
  8. makeTemporaryDirectory()
  9. makeTemporaryDirectory(File baseDir, String prefix)