List of utility methods to do Temp Directory Create
File | makeTemporaryDirectory(File baseDir, String prefix) Creates a randomly-named temporary directory. if (baseDir == null) { baseDir = new File(System.getProperty("java.io.tmpdir")); baseDir.mkdirs(); for (int tries = 0; tries < 3; ++tries) { File result = File.createTempFile(prefix, null, baseDir); if (!result.delete()) { throw new IOException("Couldn't delete temporary file " + result.getAbsolutePath() ... |
void | makeTemporaryDirectory(String dir) make Temporary Directory new File(dir).mkdirs();
|