ddfreyne/nanoc — Issue #97: Binary filters cause path issues on Windows
Author: agross
Created: 2012-02-14 16:01:39+00:00
State: open

I'm using a fair amount of binary filters for a nanoc site. The project directory is located somewhere on my drive. It happens quite often that I need to move my project up the path because paths become too long for Windows to handle.

```
Errno::ENOENT: No such file or directory - D:/Users/agross/Projekte/Arbeit/Redacted/Redacted.com/tmp/binary_items/----sers-agross--rojekte--rbeit
------------Redacted-com-tmp-binary-items-----sers-agross--rojekte--rbeit------------Redacted-com-tmp-
binary-items-content-assets-images-trainings-long-tif---------------byehof---------------m-gcx-
20120214-12748-1t7xlv.lock
```

The file in question `content/assets/images/trainings/long.tif` is run through three filters. Running two only succeeds.

It seems as if the temporary file path is unneccessariyl long. I think it doesn't make sense to include the "transcoded" absolute path in the temp file's name. The path relative to the project directory should suffice. I'm not sure if this will cause issues on Linux, though.