From 308ed3bba79d07f43e59393e06b15fe9e104cb8d Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Wed, 8 Feb 2017 14:44:48 +0100 Subject: [PATCH] Removed files that are not found on disk don't get updated to list their full path --- src/Umbraco.Web/Editors/PackageInstallController.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web/Editors/PackageInstallController.cs b/src/Umbraco.Web/Editors/PackageInstallController.cs index 99e37b610c..2a08d3955f 100644 --- a/src/Umbraco.Web/Editors/PackageInstallController.cs +++ b/src/Umbraco.Web/Editors/PackageInstallController.cs @@ -222,11 +222,10 @@ namespace Umbraco.Web.Editors file = string.Format("/{0}", file); var filePath = IOHelper.MapPath(file); + removedFiles.Add(filePath); + if (File.Exists(filePath)) - { - removedFiles.Add(filePath); File.Delete(filePath); - } } pack.Data.Files.Remove(file); }