code: 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();
    }
docs: 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