mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-25 01:03:48 +02:00
handle windows path separators when on linux client
This commit is contained in:
parent
402f5458e3
commit
c1059e956d
1 changed files with 4 additions and 0 deletions
|
@ -859,6 +859,10 @@ public class SystemEditableRemoteFile implements ISystemEditableRemoteObject, IP
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String os = System.getProperty("os.name").toLowerCase();
|
||||||
|
if (!os.startsWith("win"))
|
||||||
|
absolutePath = absolutePath.replace('\\', '/');
|
||||||
|
|
||||||
// DY: We should only be escaping the remote portion of the path
|
// DY: We should only be escaping the remote portion of the path
|
||||||
IPath remote = new Path(absolutePath);
|
IPath remote = new Path(absolutePath);
|
||||||
absolutePath = SystemFileNameHelper.getEscapedPath(remote.toOSString());
|
absolutePath = SystemFileNameHelper.getEscapedPath(remote.toOSString());
|
||||||
|
|
Loading…
Add table
Reference in a new issue