npm / fstream

Advanced FS Streaming for Node
ISC License
208 stars 43 forks source link

path.js:28 throw new TypeError('Path must be a string. Received ' + inspect(path)); #64

Open Messilimeng opened 5 years ago

Messilimeng commented 5 years ago

image

crazymad-tools commented 5 years ago

I have the same problem

  let output = outputName + '.tar.zip';
  console.log(typeof inputName, typeof output);
  fstream.Reader({
    'path': inputName,
    'type': 'Directory'
  })
    .pipe(new tar.Pack())
    .pipe(zlib.Gzip())
    .pipe(fstream.Writer({
      'path': output
    }));