1
FTP / GetDirCount() not returning latest folder listing from remote server
« on: July 02, 2018, 09:26:39 AM »
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?
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?