1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

hopefully this push will finally do the trick!

This commit is contained in:
Dave McKnight 2015-03-17 13:41:21 -04:00
parent e4f67a9566
commit 945f9b5e16

View file

@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (c) 2006, 2012 IBM Corporation and others. All rights reserved.
* Copyright (c) 2006, 2015 IBM Corporation and others. All rights reserved.
* This program and the accompanying materials are made available under the terms
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
@ -37,6 +37,7 @@
* Martin Oberhuber (Wind River) - [314496] [efs] Symlink target not reported
* Martin Oberhuber (Wind River) - [314433] [efs] NPE on openOutputStream to broken symlink
* David McKnight (IBM) - [398006] [efs] cached remote file should be cleared if exists() is false
* David McKnight (IBM) - [461940] RSEFileStoreImpl.getRemoteFileObject doesn't check whether the cashed file is marked as stale
********************************************************************************/
package org.eclipse.rse.internal.efs;
@ -334,7 +335,7 @@ public class RSEFileStoreImpl extends FileStore
private IRemoteFile getRemoteFileObject(IProgressMonitor monitor, boolean forceExists) throws CoreException {
IRemoteFile remoteFile = getCachedRemoteFile();
if (remoteFile!=null) {
if (remoteFile.getParentRemoteFileSubSystem().isConnected() && remoteFile.exists()) {
if (remoteFile.getParentRemoteFileSubSystem().isConnected() && remoteFile.exists() && !remoteFile.isStale()) {
return remoteFile;
} else {
//need to re-initialize cache
@ -343,6 +344,7 @@ public class RSEFileStoreImpl extends FileStore
}
}
RSEFileStore parentStore = _store.getParentStore();
if (parentStore!=null) {
//Handle was created naming a parent file store