Browse Source

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

Book Pauk 6 years ago
parent
commit
40f0521bce
1 changed files with 3 additions and 0 deletions
  1. 3 0
      server/core/FileDecompressor.js

+ 3 - 0
server/core/FileDecompressor.js

@@ -50,6 +50,9 @@ 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 {
+            const fd = await fs.open(outFilename, 'w');
+            await fs.close(fd);
         }
         }
 
 
         return outFilename;
         return outFilename;