From 7cd3ef8f1a8d9fff2393b503a47e2e817fc2043c Mon Sep 17 00:00:00 2001 From: maj00r Date: Fri, 13 Nov 2026 17:44:26 +0100 Subject: [PATCH] test: the in-memory disk has the root of an absolute Linux path --- StarterNG.Tests/Fakes/InMemoryFileSystem.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/StarterNG.Tests/Fakes/InMemoryFileSystem.cs b/StarterNG.Tests/Fakes/InMemoryFileSystem.cs index 0709309..22c2868 100644 --- a/StarterNG.Tests/Fakes/InMemoryFileSystem.cs +++ b/StarterNG.Tests/Fakes/InMemoryFileSystem.cs @@ -275,6 +275,9 @@ public sealed class InMemoryFileSystem : IFileSystem return; slash = key.LastIndexOf('/'); } + // An absolute Unix path's parent is the root, "/", which normalises to "". + if (slash == 0) + _directories.Add(""); } private static string Normalize(string path) =>