Procházet zdrojové kódy

Поправки параметров запуска Rar

Book Pauk před 4 roky
rodič
revize
a085e04c4d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      server/core/FileDecompressor.js

+ 1 - 1
server/core/FileDecompressor.js

@@ -241,7 +241,7 @@ class FileDecompressor {
 
 
     async unRar(filename, outputDir) {
     async unRar(filename, outputDir) {
         try {
         try {
-            const args = ['e', '-y', filename, `${outputDir}/`];
+            const args = ['x', '-p-', '-y', filename, `${outputDir}`];
             const result = await utils.spawnProcess(this.rarPath, {
             const result = await utils.spawnProcess(this.rarPath, {
                 killAfter: 60,
                 killAfter: 60,
                 args
                 args