× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi David,

The only way to do that is to re-query the file from the subsystem.

Don Yantzi
Technical Lead
WebSphere Development Studio Client for iSeries
IBM Toronto Lab





David Gibbs <david@xxxxxxxxxxxx>
Sent by: wdsc-plugin-dev-bounces@xxxxxxxxxxxx
11/29/2007 05:50 PM
Please respond to
WDSC Plugin Developers <wdsc-plugin-dev@xxxxxxxxxxxx>


To
WDSC Plugin Developers <wdsc-plugin-dev@xxxxxxxxxxxx>
cc

Subject
[Wdsc-Plugin-Dev] Force refresh on a IRemoteFile?






Folks:

Does anyone know of a way to force the RemoteFileSubSystem to refresh
the cached information it has about an IRemoteFile that refers to an IFS
file?

I'm trying to invoke a file edit session by getting an IRemoteFile ...

rfs = subsystem.getRemoteFileSubSystem();

String fullPath = fixIfsFilename(directory + rfs.getSeparator() +
filename);

try {
IRemoteFile remoteFile =
rfs.getRemoteFileObject(fullPath);
remoteFile.markAllPropertiesStale();

boolean fileExists = remoteFile.exists();
// more stuff

Problem is, if the file was previously created in the IFS, and then was
deleted, the exists() method on the remoteFile returns true.

I would like to figure out a way to have it re-query the IFS to
determine the files actual existence.

Thanks!

david



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.