Explorar el Código

Поправил баг

Book Pauk hace 6 años
padre
commit
0b84196ec2
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      server/core/FileDecompressor.js

+ 1 - 2
server/core/FileDecompressor.js

@@ -51,8 +51,7 @@ class FileDecompressor {
         if (!await fs.pathExists(outFilename)) {
             await fs.writeFile(outFilename, await this.gzipBuffer(buf))
         } else {
-            const fd = await fs.open(outFilename, 'w');
-            await fs.close(fd);
+            await fs.utimes(outFilename, Date.now()/1000, Date.now()/1000);
         }
 
         return outFilename;