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:
parent
e4f67a9566
commit
945f9b5e16
1 changed files with 4 additions and 2 deletions
|
@ -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
|
* 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
|
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
* 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) - [314496] [efs] Symlink target not reported
|
||||||
* Martin Oberhuber (Wind River) - [314433] [efs] NPE on openOutputStream to broken symlink
|
* 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) - [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;
|
package org.eclipse.rse.internal.efs;
|
||||||
|
@ -334,7 +335,7 @@ public class RSEFileStoreImpl extends FileStore
|
||||||
private IRemoteFile getRemoteFileObject(IProgressMonitor monitor, boolean forceExists) throws CoreException {
|
private IRemoteFile getRemoteFileObject(IProgressMonitor monitor, boolean forceExists) throws CoreException {
|
||||||
IRemoteFile remoteFile = getCachedRemoteFile();
|
IRemoteFile remoteFile = getCachedRemoteFile();
|
||||||
if (remoteFile!=null) {
|
if (remoteFile!=null) {
|
||||||
if (remoteFile.getParentRemoteFileSubSystem().isConnected() && remoteFile.exists()) {
|
if (remoteFile.getParentRemoteFileSubSystem().isConnected() && remoteFile.exists() && !remoteFile.isStale()) {
|
||||||
return remoteFile;
|
return remoteFile;
|
||||||
} else {
|
} else {
|
||||||
//need to re-initialize cache
|
//need to re-initialize cache
|
||||||
|
@ -343,6 +344,7 @@ public class RSEFileStoreImpl extends FileStore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
RSEFileStore parentStore = _store.getParentStore();
|
RSEFileStore parentStore = _store.getParentStore();
|
||||||
if (parentStore!=null) {
|
if (parentStore!=null) {
|
||||||
//Handle was created naming a parent file store
|
//Handle was created naming a parent file store
|
||||||
|
|
Loading…
Add table
Reference in a new issue