×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




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 On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.