Ver Fonte

Drop 'Domain' suffix when extracting files

Tor Arne Vestbø há 5 anos atrás
pai
commit
80132b32ca
1 ficheiros alterados com 2 adições e 0 exclusões
  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)