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

Drop 'Domain' suffix when extracting files

Tor Arne Vestbø пре 5 година
родитељ
комит
80132b32ca
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      tools/reports/backup/files.js

+ 2 - 0
tools/reports/backup/files.js

@@ -123,6 +123,8 @@ function extractFiles (backup, destination, filter, items) {
         domainPath = domainPath.replace('-', path.sep)
       }
 
+      domainPath = domainPath.replace('Domain', '')
+
       var filePath = path.join(domainPath, item.filename)
       var stat = new Mode(item)