Paths handled by the disk image feature doesn't treat all separators as /

This commit is contained in:
Carl Johnsen
2026-03-18 07:03:52 +01:00
parent d80f4f80df
commit b41c613347
2 changed files with 2 additions and 2 deletions
@@ -3769,7 +3769,7 @@ public class DiskImageUnitTests : BasicSetupHelper
// Test with geometry file at the root of the device
// Use the actual device path from the GPT test disk
var geometryPath = $"{s_gptRawDisk!.DevicePath}/geometry.json";
var geometryPath = $"{s_gptRawDisk!.DevicePath}{Path.DirectorySeparatorChar}geometry.json";
var result = parsePathMethod!.Invoke(provider, [geometryPath]);
Assert.IsNotNull(result, "Should return a tuple.");
+1 -1
View File
@@ -588,7 +588,7 @@ public sealed class RestoreProvider : IRestoreDestinationProviderModule, IDispos
string geometryDevicePath = NormalizePath(_targetDisk.DevicePath);
string expectedGeometryPath = $"{geometryDevicePath}/geometry.json";
string expectedGeometryPath = $"{geometryDevicePath}{Path.DirectorySeparatorChar}geometry.json";
return string.Equals(path, expectedGeometryPath, StringComparison.OrdinalIgnoreCase);
}