package installer fix to handle .bak files

This commit is contained in:
Shaun Walker 2021-05-29 15:13:27 -04:00
parent d73e1d21c7
commit 7ed93b5ce6

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))