Merge pull request #1418 from sbwalker/dev

package installer fix to handle .bak files
This commit is contained in:
Shaun Walker
2021-05-29 15:09:29 -04:00
committed by GitHub

View File

@ -48,7 +48,7 @@ namespace Oqtane.Infrastructure
// move packages to secure location // move packages to secure location
foreach (var folder in "Modules,Themes,Packages".Split(",")) foreach (var folder in "Modules,Themes,Packages".Split(","))
{ {
foreach(var file in Directory.GetFiles(Path.Combine(webRootPath, folder), "*.nupkg")) foreach(var file in Directory.GetFiles(Path.Combine(webRootPath, folder), "*.nupkg*"))
{ {
var destinationFile = Path.Combine(sourceFolder, Path.GetFileName(file)); var destinationFile = Path.Combine(sourceFolder, Path.GetFileName(file));
if (File.Exists(destinationFile)) if (File.Exists(destinationFile))