jesusabdullah/node-ecstatic — Issue #32: Cannot GET files under directories whose names contain special characters (Using Express)
Author: airandfingers
Created: 2012-02-27 18:47:25+00:00
State: open

I'm displaying a directory tree within my Express app with the sample code listed on the project's main page:
```app.use(ecstatic(__dirname + '/share'));```
This works fine for most of the files under the share directory tree.
However, I have some directories whose names contain spaces (not my typical naming style in Linux, but since these names will be visible through my site, I want them to be more readable), and while these directories display correctly (the spaces are converted to "%20"s in the URL, I can't access files within these directories - I get the default Express error "Cannot GET /[path]/[file]" error.

I've tested several cases with spaces in file and/or directory names:
* File names with spaces in them - **open properly**
* Directory names with spaces in them - **display properly**
* File names without spaces in them, inside directories whose names have spaces in them - **"Cannot GET" error**
* File names with spaces in them, inside directories whose names have spaces in them - **"Cannot GET" error**