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, and if logs does not exist you'll receive java.io.IOException: No such file or directory
logs
java.io.IOException: No such file or directory
Fun fact for android devs: calls the likes of Files.createDirectories() and Paths.get() would work when supporting min api 26.
Files.createDirectories()
Paths.get()