1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-12 03:25:22 +02:00

fix for windows paths when used as remote project

This commit is contained in:
David McKnight 2006-06-21 17:10:50 +00:00
parent 15ddfa7b81
commit d86114123f

View file

@ -285,7 +285,12 @@ public class RSEFileStoreRemoteFileWrapper extends FileStore implements IFileSto
{
try
{
return new URI("rse", _subSystem.getHost().getHostName(), _remoteFile.getAbsolutePath(), null); //$NON-NLS-1$
String path = _remoteFile.getAbsolutePath();
if (path.charAt(0) != '/')
{
path = "/" + path.replace('\\', '/');
}
return new URI("rse", _subSystem.getHost().getHostName(), path, null); //$NON-NLS-1$
}
catch (URISyntaxException e)
{