private synchronized File createTemp ( File workingDirectory ) throws IOException { if ( workingDirectory == null ) { return createTempDir ( ) ; } else { workingDirectory . mkdirs ( ) ; return workingDirectory ; } }
Creates a fresh temp folder under the mentioned working folder . If workingFolder is null system wide temp location will be used .