From dac1a8e9dc7024ba73d2bcefa7b29a276a79803b Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Thu, 29 Nov 2012 11:56:33 -0100 Subject: [PATCH] Checking to see why the test file doesn't get deleted on the build server --- src/Umbraco.Core/IO/PhysicalFileSystem.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Core/IO/PhysicalFileSystem.cs b/src/Umbraco.Core/IO/PhysicalFileSystem.cs index 07c9cb1793..def0a3c19c 100644 --- a/src/Umbraco.Core/IO/PhysicalFileSystem.cs +++ b/src/Umbraco.Core/IO/PhysicalFileSystem.cs @@ -5,6 +5,8 @@ using System.Linq; using System.Text; using System.Web; using Umbraco.Core.CodeAnnotations; +using Umbraco.Core.Logging; +using Umbraco.Core.Publishing; namespace Umbraco.Core.IO { @@ -131,7 +133,9 @@ namespace Umbraco.Core.IO File.Delete(GetFullPath(path)); } catch (FileNotFoundException ex) - { } + { + LogHelper.Info(string.Format("DeleteFile failed with FileNotFoundException: {0}", ex.InnerException)); + } } public bool FileExists(string path)