hjy
hjy
https://nodejs.org/api/zlib.html#zlib_zlib
你电脑的3000端口或者8080是不是被别的程序占用了? netstat -ano | findstr :3000 试试
```js //Specify the character encoding used to decode the stdout and stderr output. If set to null, then stdout and stderr will be a Buffer instead of a string. let...
```js if(files.length === 0){ res.sendStatus(404); console.error(`[/api/extract] ${filePath} has no content`); return } ```
https://stackoverflow.com/questions/46603489/how-to-force-utf-8-in-node-js-with-exec-process
https://github.com/hjyssg/ShiguReader/pull/189/commits/8a64352974d8d5314282e20ea0c959acbd756b7e
https://github.com/hjyssg/ShiguReader/pull/91 partly fixed
别的更简单方法可以达到差不多的效果 对cpu内存要求和占用都小得多
```js let timer; let count = 0; const time_out = 1000; const max_wait_chokidir = 4; function waitForExtract(){ checkCache if have { clearTimeout(timer) send back }else{ if(extractQueue[fileName] || count < max_wait_chokidir){...
 你给的信息不够 我觉得是你文件夹权限的问题