1
0
Fork 0
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:
David McKnight 2007-01-04 19:50:23 +00:00
parent 16a5249cb2
commit 5604dedce9

View file

@ -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);