chapel-lang/chapel — pull request #402 by lydia-duncan (2014-09-12 18:25:53+00:00)
Title: Take Greg's comment on mkdir into account

This adds a check to see if we need to create a parent directory and returns
the first error we find that is either mkdir generated, or found by stat but not
a "file or directory does not exist" error (which we would've solved by calling
mkdir afterwards).