I need to create a temp folder where I can put some temp files for processing. I am not sure if I would have Read/Write access in the folder where my application jar would be executed.
- Is it best to create the temp folder in the System’s temp Directory ?
- When I use the
File tempFolder = File.createTempFile("fooo","");Where is the folder created ? When I cd into the temp folder in my mac I am not able to see a folder by name fooo.
You are almost done with create tempfolder, see this:
first createTempFile will make a real file for you, just remove it and make a directory using the same name.
I use osx, too. My result is: