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 .