volojs/volo — pull request #91 by sfoster (2012-08-31 12:39:12+00:00)
Title: Re: #90, check download dir exists before writing to it

I saw your fix to #90, but I got the same ENOENT error when trying to run the test case. The tempDir itself is created, but when one or more subdirectories are indicated by the localName, it fails.

This pull request makes use of the mkdirp module in download.js to ensure the necessary directories exist before writing. It does look like this fix overlaps with functionality in tempDir.create, but I didn't make any headway trying to fix it there (or in add.js where the seed-ed directory is created).

So maybe this isn't the right fix, but you get the idea.