AB#5822 - removed IIOHelper.DirSepChar and uses Path.DirectorySeparatorChar instead

This commit is contained in:
Bjarke Berg
2020-04-03 10:09:08 +02:00
parent eba1b90976
commit 2c1d94cb11
5 changed files with 9 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web.Http;
using Umbraco.Core.Composing;
@@ -17,7 +18,7 @@ namespace Umbraco.Web.Editors
public BackOfficeAssetsController(IIOHelper ioHelper, ILogger logger, IGlobalSettings globalSettings)
{
_jsLibFileSystem = new PhysicalFileSystem(ioHelper, logger, globalSettings.UmbracoPath + ioHelper.DirSepChar + "lib");
_jsLibFileSystem = new PhysicalFileSystem(ioHelper, logger, globalSettings.UmbracoPath + Path.DirectorySeparatorChar + "lib");
}
[HttpGet]

View File

@@ -105,7 +105,7 @@ namespace Umbraco.Web.Editors
//var mediaItemName = fileName.ToFriendlyName();
var currentFile = file.LocalFileName;
var newFilePath = imageTempPath + _ioHelper.DirSepChar + safeFileName;
var newFilePath = imageTempPath + Path.DirectorySeparatorChar + safeFileName;
var relativeNewFilePath = _ioHelper.GetRelativePath(newFilePath);
try