jesusabdullah/node-ecstatic — Issue #28: ecstatic not working on windows
Author: amelon
Created: 2012-02-03 22:34:39+00:00
State: open

in file ecstatic.js, you initialize root var with a '/' at the end.

```
var root = path.resolve(dir) + '/',
```

In windows it makes following test always wrong:

```
if (file.slice(0, root.length) !== root) {
```
eg: file is c:\test\project\public\index.html and root is c:\test\project\public/
=> file.slice(0, root.length) = c:\test\project\public\ and root = c:\test\project\public/

Is trailing slash on root really necessary?

When I remove it, it works.