Using Node.js I get, "Error: EISDIR, read"
node.js
Solution
This error is simple,
cd /tmp
mkdir dir
node -e "var fs = require('fs'); fs.createReadStream( 'dir' );"
EISDIR means that the target of the operation is a directory in reality but that the expected filetype of the target is something other than a directory.
Problem
When ever I try to open a file I get, ``` events.js:72 throw er; // Unhandled 'error' event Error: EISDIR, read ```