Skip to content

Commit

Permalink
#2687 Fixed bug with occasional non-extraction of the first file from…
Browse files Browse the repository at this point in the history
… the archive
  • Loading branch information
RomanovM committed Oct 26, 2017
1 parent ea1e68a commit 9af73fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Libraries/Nop.Core/Plugins/PluginManager.cs
Expand Up @@ -234,7 +234,11 @@ private static IList<PluginDescriptor> UploadMultiplePlugins(string archivePath)
var entryPath = Path.Combine(pluginPath, entry.FullName.Substring(plugin.PluginPath.Length));
var directoryPath = Path.GetDirectoryName(entryPath);
if (!Directory.Exists(directoryPath))
{
Directory.CreateDirectory(directoryPath);
if (directoryPath.Equals(pluginPath, StringComparison.InvariantCultureIgnoreCase))
entry.ExtractToFile(entryPath);
}
else
entry.ExtractToFile(entryPath);
}
Expand Down

0 comments on commit 9af73fd

Please sign in to comment.