apm/yuidocjs — Issue #9: Doesn't Create Assets Folder If It Doesn't Exist
Author: ultralimedesign
Created: 2011-10-12 00:03:33+00:00
State: open

Builder fails when at the copying assets step if the folder does not already exist. Creating an assets folder lets the process complete past this step.

It should probably check if the folder exists, and then if it doesn't it should create it.

```js
info: (yuidoc): Parsed 1229 files in 9.2 seconds
info: (builder): Building..
info: (builder): Compiling Templates
info: (builder): Making default directories: classes,modules,files
info: (builder): Copying Assets

fs.js:396
return binding.lstat(path);
^
Error: ENOENT, No such file or directory '/Users/funnyd/Desktop/docs/assets'
at Object.lstatSync (fs.js:396:18)
at isDirectory (/usr/local/lib/node_modules/yuidocjs/node_modules/yui3/lib/yui3-files.js:218:19)
at Object.copyAssets (/usr/local/lib/node_modules/yuidocjs/node_modules/yui3/lib/yui3-files.js:323:28)
at /usr/local/lib/node_modules/yuidocjs/lib/builder.js:1084:29
at [object Object]. (/usr/local/lib/node_modules/yuidocjs/lib/builder.js:464:21)
at Object.test (/usr/local/lib/node_modules/yuidocjs/node_modules/yui3/lib/yui3-parallel.js:24:27)
at /usr/local/lib/node_modules/yuidocjs/node_modules/yui3/lib/yui3-parallel.js:18:18
```