Преглед изворни кода

Bug fix: Deleting previous temp files was failing.

Lee Morgan пре 3 дана
родитељ
комит
04df9cf180
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -75,7 +75,7 @@ const removeOldTmpDirs = async ()=>{
     const entries = await fs.readdir(os.tmpdir());
     for(let i = 0; i < entries.length; i++){
         if(entries[i].startsWith("neovan-")){
-            fs.rm(entries[i].name, {recursive: true, force: true});
+            fs.rm(entries[i], {recursive: true, force: true});
         }
     }
 }