Поправил баг
This commit is contained in:
@@ -51,8 +51,7 @@ class FileDecompressor {
|
|||||||
if (!await fs.pathExists(outFilename)) {
|
if (!await fs.pathExists(outFilename)) {
|
||||||
await fs.writeFile(outFilename, await this.gzipBuffer(buf))
|
await fs.writeFile(outFilename, await this.gzipBuffer(buf))
|
||||||
} else {
|
} else {
|
||||||
const fd = await fs.open(outFilename, 'w');
|
await fs.utimes(outFilename, Date.now()/1000, Date.now()/1000);
|
||||||
await fs.close(fd);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return outFilename;
|
return outFilename;
|
||||||
|
|||||||
Reference in New Issue
Block a user