mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 07:35:24 +02:00
[168366] don't refresh local when unnecessary. In the case of this defect, this hits an exception due to resource locking
This commit is contained in:
parent
16a5249cb2
commit
5604dedce9
1 changed files with 5 additions and 2 deletions
|
@ -1274,8 +1274,11 @@ public class UniversalFileTransferUtility
|
|||
newTargetFolder = targetFS.getRemoteFileObject(newPath);
|
||||
}
|
||||
|
||||
directory.refreshLocal(IResource.DEPTH_ONE, monitor);
|
||||
|
||||
|
||||
if (!directory.isSynchronized(IResource.DEPTH_ONE))
|
||||
directory.refreshLocal(IResource.DEPTH_ONE, monitor);
|
||||
|
||||
|
||||
boolean isTargetLocal = newTargetFolder.getParentRemoteFileSubSystem().getHost().getSystemType().equals("Local"); //$NON-NLS-1$
|
||||
boolean destInArchive = (newTargetFolder instanceof IVirtualRemoteFile) || newTargetFolder.isArchive();
|
||||
boolean doSuperTransferPreference = RSEUIPlugin.getDefault().getPreferenceStore().getBoolean(ISystemPreferencesConstants.DOSUPERTRANSFER);
|
||||
|
|
Loading…
Add table
Reference in a new issue