Support back and forward slashes as path seperator

This commit is contained in:
stax76
2026-01-09 07:35:09 +01:00
parent 03d0aeb879
commit 9686c28f6a

View File

@@ -16,7 +16,10 @@ public static class PathStringExtensions
for (int x = path.Length - 1; x >= 0; x--)
{
if (chars[x] == Path.DirectorySeparatorChar)
if (chars[x] == '/')
return "";
if (chars[x] == '\\')
return "";
if (chars[x] == '.')