From b898bb3f2d06a10f17977a36785bb1a9939be80e Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 23 Jul 2024 22:37:12 +0200 Subject: [PATCH] Include regionSize in import/export path, even if path is custom --- OSM_Regions/Converter.cs | 2 +- OSM_Regions/RegionLoader.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OSM_Regions/Converter.cs b/OSM_Regions/Converter.cs index aad5a4b..43d5158 100644 --- a/OSM_Regions/Converter.cs +++ b/OSM_Regions/Converter.cs @@ -12,7 +12,7 @@ public class Converter(float regionSize, string? exportFolderPath = null, ILogge { internal readonly float RegionSize = regionSize; - internal readonly string ExportFolderPath = exportFolderPath ?? Path.Join(Environment.CurrentDirectory, regionSize.ToString(CultureInfo.InvariantCulture)); + internal readonly string ExportFolderPath = Path.Join(exportFolderPath ?? Environment.CurrentDirectory, regionSize.ToString(CultureInfo.InvariantCulture)); internal const string NodesMapRegionFileName = "nodes.map"; internal const string WayMapRegionFileName = "ways.map"; internal const string NodesRegionDirectory = "nodes"; diff --git a/OSM_Regions/RegionLoader.cs b/OSM_Regions/RegionLoader.cs index d53afc2..f60a4c5 100644 --- a/OSM_Regions/RegionLoader.cs +++ b/OSM_Regions/RegionLoader.cs @@ -9,7 +9,7 @@ public class RegionLoader(float regionSize, string? importFolderPath = null, ILo { internal readonly float RegionSize = regionSize; - internal readonly string ImportFolderPath = importFolderPath ?? Path.Join(Environment.CurrentDirectory, regionSize.ToString(CultureInfo.InvariantCulture)); + internal readonly string ImportFolderPath = Path.Join(importFolderPath ?? Environment.CurrentDirectory, regionSize.ToString(CultureInfo.InvariantCulture)); private const string NodesMapRegionFileName = "nodes.map"; private const string WayMapRegionFileName = "ways.map";