I\'ve got a conditional to check if a certain file exists before proceeding (./logs/error.log). If it isn\'t found I want to create it. However, will
./logs/error.log
No. Use tmp.getParentFile().mkdirs() before you create the file.
tmp.getParentFile().mkdirs()