Removed files that are not found on disk don't get updated to list their full path

This commit is contained in:
Sebastiaan Janssen
2017-02-08 14:44:48 +01:00
parent 7bcb2b11f6
commit 308ed3bba7

View File

@@ -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);
}