mikeal/filed — Issue #8: Fails with non-existing file
Author: naholyr
Created: 2011-10-30 21:58:21+00:00
State: open

In a unpiped context, creating an instance with a non-existing path fails:

```javascript
var filed = require("filed")
f = filed("./unexisting-file")
```
returns
```javascript
{ writable: true,
readable: true,
buffers: [],
path: './toto.txt',
index: 'index.html',
_events: { pipe: [Function] },
buffering: true,
mimetype: 'application/octet-stream' }
```
but also throws
```
events.js:48
throw arguments[1]; // Unhandled 'error' event
^
Error: ENOENT, No such file or directory './toto.txt'
```
no time to call `write()` or `end()`, it has already failed

I suppose it's linked to the fact that there is no pipe around, because this works:
```javascript
filed("existing-file").pipe(filed("unexisting-file"))
```

Anyway, the very first example fails :S