Updated for consistant delimiter presence with source

This commit is contained in:
Sean Long
2020-04-18 12:53:41 -04:00
parent 70502cd881
commit ce118096b7
7 changed files with 17 additions and 13 deletions

View File

@ -103,7 +103,8 @@ namespace Oqtane.Infrastructure
case ".svg":
case ".js":
case ".css":
filename = Path.Combine(sourceFolder, entry.FullName.Replace("wwwroot", name));
string entryPath = Path.Combine(entry.FullName.Replace("wwwroot", name).Split("/"));
filename = Path.Combine(sourceFolder, entryPath);
if (!Directory.Exists(Path.GetDirectoryName(filename)))
{
Directory.CreateDirectory(Path.GetDirectoryName(filename));