private string GetContentRoot(string rootPath) { if (cmsConfiguration.Storage.ServiceType == StorageServiceType.FileSystem && VirtualPathUtility.IsAppRelative(rootPath)) { return httpContextAccessor.MapPath(rootPath); } return rootPath; } }