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

@ -110,7 +110,7 @@ namespace Oqtane.Controllers
if (string.IsNullOrEmpty(folder.Path) && folder.ParentId != null)
{
Folder parent = _folders.GetFolder(folder.ParentId.Value);
folder.Path = Path.Combine(parent.Path, folder.Name);
folder.Path = Path.Combine(parent.Path, folder.Name," ").TrimEnd(' ');
}
folder = _folders.AddFolder(folder);
_logger.Log(LogLevel.Information, this, LogFunction.Create, "Folder Added {Folder}", folder);
@ -135,7 +135,7 @@ namespace Oqtane.Controllers
if (string.IsNullOrEmpty(folder.Path) && folder.ParentId != null)
{
Folder parent = _folders.GetFolder(folder.ParentId.Value);
folder.Path = Path.Combine(parent.Path, folder.Name);
folder.Path = Path.Combine(parent.Path, folder.Name, " ").TrimEnd(' ');
}
folder = _folders.UpdateFolder(folder);
_logger.Log(LogLevel.Information, this, LogFunction.Update, "Folder Updated {Folder}", folder);