Эх сурвалжийг харах

Добавил тач файла в /tmp

Book Pauk 6 жил өмнө
parent
commit
40f0521bce

+ 3 - 0
server/core/FileDecompressor.js

@@ -50,6 +50,9 @@ 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);
         }
 
         return outFilename;