title: Nodejs empty ReadableStream
body: <p>I have the following trivial function to copy a file in <code>nodejs</code></p>
  
  <pre><code>function copyFileSync(source, target) {
       var readerStream = fs.createReadStream(source);
       var writerStream = fs.createWriteStream(target);
       readerStream.pipe(writerStream);
  }
  </code></pre>
  
  <p><code>readerStream.length == 0</code> and I cannot get why, as <code>source</code> is an existing, well-formed file. The result is the creation of an empty <code>target</code> file. As for debug, I noticed that <code>data</code> event is not emitted. I also set file permission to <code>777</code>.
  Here's a log of the <code>readerStream</code> object:</p>
  
  <pre><code>{
    "_readableState":{
      "highWaterMark":65536,
      "buffer":[
  
      ],
      "length":0,
      "pipes":null,
      "pipesCount":0,
      "flowing":false,
      "ended":false,
      "endEmitted":false,
      "reading":false,
      "calledRead":false,
      "sync":true,
      "needReadable":false,
      "emittedReadable":false,
      "readableListening":false,
      "objectMode":false,
      "defaultEncoding":"utf8",
      "ranOut":false,
      "awaitDrain":0,
      "readingMore":false,
      "decoder":null,
      "encoding":null
    } ,
    "readable":true,
    "domain":null,
    "_events":{
  
    },
    "_maxListeners":10,
    "path":"/my/file/path",
    "fd":null,
    "flags":"r",
    "mode":438,
    "autoClose":true
  }
  </code></pre>