public void setTempDirectory ( File dir ) throws IOException { File td = dir . getCanonicalFile ( ) ; if ( td . isDirectory ( ) ) { _temp_directory = td ; } }
Override directory to create temporary file in . Does not affect already open temp file .