private static File createTempFile ( File baseFile ) { File parentDirectory = baseFile . getParentFile ( ) ; String filename = baseFile . getName ( ) ; return new File ( parentDirectory , ' ' + filename ) ; }
Create a temporary File object . Prefix the name of the base file with an underscore .