fstream icon indicating copy to clipboard operation
fstream copied to clipboard

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

Open Messilimeng opened this issue 6 years ago • 1 comments

image

Messilimeng avatar May 06 '19 10:05 Messilimeng

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
    }));

crazymad-tools avatar Jun 11 '19 08:06 crazymad-tools