1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

handle windows path separators when on linux client

This commit is contained in:
David McKnight 2006-09-21 14:45:35 +00:00
parent 402f5458e3
commit c1059e956d

View file

@ -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
IPath remote = new Path(absolutePath);
absolutePath = SystemFileNameHelper.getEscapedPath(remote.toOSString());