Merge pull request #655 from alexhendel/fix-path-handling
Fix directory separator for path operations
This commit is contained in:
		| @ -131,7 +131,7 @@ namespace Oqtane.SiteTemplates | ||||
|  | ||||
|             if (System.IO.File.Exists(Path.Combine(_environment.WebRootPath, "images", "logo-white.png"))) | ||||
|             { | ||||
|                 string folderpath = Utilities.PathCombine(_environment.ContentRootPath, "Content", "Tenants", site.TenantId.ToString(), "Sites", site.SiteId.ToString(),"\\"); | ||||
|                 string folderpath = Utilities.PathCombine(_environment.ContentRootPath, "Content", "Tenants", site.TenantId.ToString(), "Sites", site.SiteId.ToString(), Path.DirectorySeparatorChar.ToString()); | ||||
|                 System.IO.Directory.CreateDirectory(folderpath); | ||||
|                 if (!System.IO.File.Exists(Path.Combine(folderpath, "logo-white.png"))) | ||||
|                 { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker