Author Topic: GetDirCount() not returning latest folder listing from remote server  (Read 277 times)

ukrob

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
I have got the ftp2 active x to connect to ftps server with encrypted auth and encrypted data with client cert required. (Thanks for the good examples)

I then want to code uploading a file and checking if it reached the server. I do this by the below in my existing ftp code  but with the ftp2 class it's not quite working

1, I set-up a connection to the server
2, I change folder into "/" folder
3, I get Folder listing
4, I then upload a file.
5, I then want to get the directory listing from remote server to see if the file I uploaded is there but getDirCount() is returning the same number of files that I received in step 3

How do I get a fresh listing from the remote server without Changing Directory or disconnecting and setting up a new connection?


Chilkat

  • Administrator
  • Full Member
  • *****
  • Posts: 103
  • Karma: +6/-0
    • View Profile
Re: GetDirCount() not returning latest folder listing from remote server
« Reply #1 on: July 05, 2018, 04:36:19 PM »
Call ftp2.ClearDirCache()