Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Fix TryRenameDirectory
support4d2361c80101
diff --git a/src/Business/Grand.Business.Storage/Services/FileSystemStore.cs b/src/Business/Grand.Business.Storage/Services/FileSystemStore.csindex 3efe1a49b..c6f9cdf85 100644--- a/src/Business/Grand.Business.Storage/Services/FileSystemStore.cs+++ b/src/Business/Grand.Business.Storage/Services/FileSystemStore.cs@@ -128,11 +128,10 @@ namespace Grand.Business.Storage.Servicesvar directoryInfo = new DirectoryInfo(physicalPath);var newphysicalPath = GetPhysicalPath(Path.Combine(directoryInfo.Parent.FullName, newName));- if (Directory.Exists(newphysicalPath))- {- return Task.FromResult(false);- }-++ if (!Directory.Exists(newphysicalPath))+ Directory.CreateDirectory(newphysicalPath);+directoryInfo.MoveTo(newphysicalPath);return Task.FromResult(true);