Corrected mkdir for Java 6 such that if a parent directory does not exist then ENOENT is thrown. Node actually isn't clear on what should happen here, but the mkdirp module certainly expects ENOENT. In addition the Java 7 version works. I would think that it works because a fileNotFound exception is turned into ENOENT within AsyncFileSystem.