diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_12_0_0/ResetCache.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_12_0_0/ResetCache.cs index ce105bf6b8..a3ec96ad7e 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_12_0_0/ResetCache.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_12_0_0/ResetCache.cs @@ -22,6 +22,11 @@ public class ResetCache : MigrationBase private void DeleteAllFilesInFolder(string path) { + if (Directory.Exists(path) == false) + { + return; + } + var directoryInfo = new DirectoryInfo(path); foreach (FileInfo file in directoryInfo.GetFiles())