mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +02:00
[409785] When copying a file from a network location (e.g.
\\myserver\xxx\abc.cpp) to a mapped local location in RSE, workbench hangs on this filecopy
This commit is contained in:
parent
8fab345f07
commit
cf510d447e
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2002, 2012 IBM Corporation and others.
|
* Copyright (c) 2002, 2013 IBM Corporation and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -25,6 +25,7 @@
|
||||||
* David McKnight (IBM) - [283033] remoteFileTypes extension point should include "xml" type
|
* David McKnight (IBM) - [283033] remoteFileTypes extension point should include "xml" type
|
||||||
* David McKnight (IBM) - [328098] infinite loop when opening file from an UNC path
|
* David McKnight (IBM) - [328098] infinite loop when opening file from an UNC path
|
||||||
* Rob Stryker (Red Hat) - [393384] isArchive returning true on remote folders ending in .jar
|
* Rob Stryker (Red Hat) - [393384] isArchive returning true on remote folders ending in .jar
|
||||||
|
* David McKnight (IBM) - [409785] When copying a file from a network location (e.g. \\myserver\xxx\abc.cpp) to a mapped local location in RSE, workbench hangs on this filecopy
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.subsystems.files.core.subsystems;
|
package org.eclipse.rse.subsystems.files.core.subsystems;
|
||||||
|
@ -1166,6 +1167,9 @@ public abstract class RemoteFile implements IRemoteFile, IAdaptable, Comparable
|
||||||
{
|
{
|
||||||
return separator;
|
return separator;
|
||||||
}
|
}
|
||||||
|
else if (path.equals("\\")){ //$NON-NLS-1$
|
||||||
|
return null; // for mapped network folder, there may not be a drive
|
||||||
|
}
|
||||||
else if (lastSep > 0)
|
else if (lastSep > 0)
|
||||||
{
|
{
|
||||||
return path.substring(0, lastSep);
|
return path.substring(0, lastSep);
|
||||||
|
|
Loading…
Add table
Reference in a new issue