fix: Backslash-Support im File-Explorer für Chat und Benutzerverwaltung
WorkspaceHelper gibt native Pfade zurück, Frontend-Logik unterstützt beide Separatoren. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
1526891cd9
commit
4e2815ebd3
3 files changed
+12
-9
No files matched your search
@@ -27,12 +27,11 @@ public static class WorkspaceHelper
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gibt den relativen Pfad zurück – immer mit Forward-Slashes (für Agent-Output/API).
|
||||
/// Gibt den relativen Pfad zurück – mit nativen Separatoren (Backslash auf Windows, / auf Linux).
|
||||
/// </summary>
|
||||
internal static string GetRelativePath(string relativeTo, string path)
|
||||
{
|
||||
var rel = Path.GetRelativePath(relativeTo, path);
|
||||
return IsWindows ? rel.Replace('\\', '/') : rel;
|
||||
return Path.GetRelativePath(relativeTo, path);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user