Can we turn off remote directory caching?

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Can we turn off remote directory caching?Expand / Collapse
Author
Message
Posted 10/20/2005 4:59:58 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 1/6/2006 3:04:00 PM
Posts: 2, Visits: 1
I'm writing some code that goes out every few minutes and downloads all files with a specified generic name from an FTP site.  It's part of a Windows service.  Since the toolkit doesn't support generic names, I do a WsftpConnection.GetFolder to get the list, then download and delete each file in the folder.  The first time it works exactly as expected.  (This is just ordinary FTP for now, not secured.)  A few minutes later, I go to get the directory listing again - and it shows all the old files which aren't there any more, but not the new ones.  Using the SessionLog event to trace things, I see that the directory is cached somewhere.  That's fatal.  Can I disable the cache, set the cache duration to less than the polling interval, or tell the object not to use the cache?  Or is there some other way to do this?  If not, how long is the cache kept for? (I might be able to use a longer polling interval.)  Any ideas would be appreciated.
Post #11432
Posted 10/22/2005 10:56:51 PM
Time Traveler

Time TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime Traveler

Group: Ipswitch Employees
Last Login: Today @ 4:27:41 PM
Posts: 228, Visits: 1,379

You can use the Refresh method on the folder to update it.

Claudio Robles
WS_FTP Team
Ipswitch

Post #11491
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Dave, Mark Singh, kevin r gillis, Jason Benton, Brandon Felger, Ben Henderson, Tripp Allen, Will Sansbury, Jason Williams, Hush, FTPplanet.com, LDW, Hugh Garber, WUP-PM, mmulryan@ipswitch.com, mswimm, Travis G.

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 9:32pm

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.094. 8 queries. Compression Enabled.