How can I find out why java.io.File.mkdir() returns false
file-io, java
Solution
You will need to use `mkdirs()` if the parent folder (`some` in your example) doesn't already exist.
Problem
How do I find out why `java.io.File.mkdir()` returns `false`. I can create the directory manually. UPDATE: My code looks like this: ``` String directoryName = "C:/some/path/"; File directory= new File(directoryName ); if (!directory.exists() && !directory.mkdir()) { throw new RuntimeException("Failed to create directory: " + directoryName); } ```