mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-12 11:35:21 +02:00
fix for windows paths when used as remote project
This commit is contained in:
parent
15ddfa7b81
commit
d86114123f
1 changed files with 6 additions and 1 deletions
|
@ -285,7 +285,12 @@ public class RSEFileStoreRemoteFileWrapper extends FileStore implements IFileSto
|
||||||
{
|
{
|
||||||
try
|
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)
|
catch (URISyntaxException e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue