public static File createTempDirectory(String namespace, String name) throws IOException
  {
    File dir = File.createTempFile(namespace, "");

    if(dir.exists())
      deleteFile(dir);

    createNewDirectory(dir);

    File tempDir = new File(dir, name);

    createNewDirectory(tempDir);

    return tempDir.getCanonicalFile();
  }
public static File createTempDirectory(String namespace, String name) throws IOException
  {
    File dir = File.createTempFile(namespace, "");

    if(dir.exists())
      deleteFile(dir);

    createNewDirectory(dir);

    File tempDir = new File(dir, name);

    createNewDirectory(tempDir);

    return tempDir.getCanonicalFile();
  }
public static File createTempDirectory ( String namespace , String name ) throws IOException { File dir = File . createTempFile ( namespace , "" ) ; if ( dir . exists ( ) ) deleteFile ( dir ) ; createNewDirectory ( dir ) ; File tempDir = new File ( dir , name ) ; createNewDirectory ( tempDir ) ; return tempDir . getCanonicalFile ( ) ; }
Creates a temporary directory.

@param namespace
@param name      root name of the temporary directory
@return the temp dir
@throws IOException if there is a problem
Creates a temporary directory .