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
File theDir = new File(DirectoryPath); if (!theDir.exists()) theDir.mkdirs();