Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkdir should return ENOENT on Java 6 for non existent parent dirs #51

Merged
merged 1 commit into from
Apr 7, 2014

Conversation

huntc
Copy link
Contributor

@huntc huntc commented Apr 5, 2014

Corrected mkdir for Java 6 such that if there is a parent directory but it 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 Trireme Java 7 version functions correctly with mkdirp. I would think that Java 7 works because a FileNotFoundException is turned into ENOENT within AsyncFileSystem.

In addition all node exceptions within mkdir now communicate the path in the spirit of providing sufficient debug.

…xist 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.
huntc added a commit to huntc/Play20 that referenced this pull request Apr 7, 2014
…ated js-engine with that dependency. We are using our own publishing of Trireme as we need the patch at apigee/trireme#51 quickly.
huntc added a commit to huntc/Play20 that referenced this pull request Apr 7, 2014
…ated js-engine with that dependency. We are using our own publishing of Trireme as we need the patch at apigee/trireme#51 quickly.
@gbrail gbrail merged commit 14363e7 into apigee:master Apr 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants