Skip to content

Commit 8e1c3f4

Browse files
committed
Delete old static files of file manager by migration
1 parent 97918a5 commit 8e1c3f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Libraries/SmartStore.Data/Migrations/201605201911421_ExportRevision.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ namespace SmartStore.Data.Migrations
55
using Core.Domain;
66
using Core.Domain.DataExchange;
77
using Setup;
8+
using Utilities;
89

910
public partial class ExportRevision : DbMigration, ILocaleResourcesProvider, IDataSeeder<SmartObjectContext>
1011
{
@@ -58,6 +59,9 @@ public void Seed(SmartObjectContext context)
5859

5960
context.ColumnDelete("ExportDeployment", "IsPublic");
6061
}
62+
63+
var oldFileManagerPath = CommonHelper.MapPath("~/Content/filemanager");
64+
FileSystemHelper.ClearDirectory(oldFileManagerPath, true);
6165
}
6266

6367
public void MigrateLocaleResources(LocaleResourcesBuilder builder)

0 commit comments

Comments
 (0)