I'm uploading a file (FileA) to the FTP Server, setting the remote filename to "FileUploaded".
After that I call GetSize, receiving the correct filesize.
When the remote filesize matches the local filesize, the file is renamed to "FileA".
Then I'm uploading another file (FileB), setting the remote filename again to "FileUploaded".
The call of GetSize now shows the size of FileA instead of the size of FileB.
Waiting for some seconds and the again call GetSize results in the right size (FileB).
It sound like some caching ... is there a way to disable that?
Maybe the protocol helps:
DEBUG [FTPConnection] 15 Jan 2009 08:51:11.910 : Set LocalDirectory='D:\Projects\VB6\MessageTransfer\MessageTransfer.NET\bin'DEBUG [HostNameResolver] 15 Jan 2009 08:51:11.925 : ftp.myserver.com resolved to 195.22.136.52DEBUG [FTPClient] 15 Jan 2009 08:51:11.925 : Connecting to 195.22.136.52:21DEBUG [FTPControlSocket] 15 Jan 2009 08:51:11.941 : Setting socket timeout=120000DEBUG [FTPControlSocket] 15 Jan 2009 08:51:11.941 : Command encoding=System.Text.ASCIIEncodingDEBUG [FTPControlSocket] 15 Jan 2009 08:51:11.941 : StrictReturnCodes=FalseDEBUG [FTPControlSocket] 15 Jan 2009 08:51:11.941 : 220 Microsoft FTP ServiceDEBUG [FTPControlSocket] 15 Jan 2009 08:51:11.957 : ---> USER gfkms\idasadmDEBUG [FTPControlSocket] 15 Jan 2009 08:51:11.957 : 331 Password required for gfkms\idasadm.DEBUG [FTPControlSocket] 15 Jan 2009 08:51:11.957 : ---> PASS ********DEBUG [FTPControlSocket] 15 Jan 2009 08:51:11.957 : 230-Successfull login to ftp.myserver.com (ftp1.gfkms.com)DEBUG [FTPControlSocket] 15 Jan 2009 08:51:12.144 : 230 User gfkms\idasadm logged in.DEBUG [FTPConnection] 15 Jan 2009 08:51:12.144 : Successfully logged inDEBUG [FTPControlSocket] 15 Jan 2009 08:51:12.160 : ---> TYPE IDEBUG [FTPControlSocket] 15 Jan 2009 08:51:12.160 : 200 Type set to I.DEBUG [FTPControlSocket] 15 Jan 2009 08:51:12.160 : ---> PWDDEBUG [FTPControlSocket] 15 Jan 2009 08:51:12.160 : 257 "/idasadm" is current directory.DEBUG [FTPControlSocket] 15 Jan 2009 08:51:12.160 : ---> CWD /idashu/messages/ffi_messages/DEBUG [FTPControlSocket] 15 Jan 2009 08:51:13.207 : 250 CWD command successful.DEBUG [FTPControlSocket] 15 Jan 2009 08:51:13.207 : ---> PWDDEBUG [FTPControlSocket] 15 Jan 2009 08:51:13.207 : 257 "/idashu/messages/ffi_messages" is current directory.DEBUG [FTPConnection] 15 Jan 2009 08:51:13.660 : Combining absolute path 'D:\Projects\VB6\MessageTransfer\MessageTransfer.NET\bin' with relative path '\\IDASPROC\DFS\HU\MESSAGES\FFI\FFI_18079_0812_2_M42849.MDB.rar'DEBUG [FTPControlSocket] 15 Jan 2009 08:51:13.675 : ---> PASVDEBUG [FTPControlSocket] 15 Jan 2009 08:51:13.675 : 227 Entering Passive Mode (195,22,136,52,4,148).DEBUG [FTPControlSocket] 15 Jan 2009 08:51:13.675 : Server supplied address=195.22.136.52DEBUG [FTPControlSocket] 15 Jan 2009 08:51:13.675 : Server supplied port=1172DEBUG [FTPControlSocket] 15 Jan 2009 08:51:13.675 : Substituting server supplied IP (195.22.136.52) with remote host IP (195.22.136.52)DEBUG [FTPControlSocket] 15 Jan 2009 08:51:13.675 : NewPassiveDataSocket(195.22.136.52,1172)DEBUG [FTPControlSocket] 15 Jan 2009 08:51:13.675 : ---> STOR FileUploadedDEBUG [FTPControlSocket] 15 Jan 2009 08:51:14.128 : 125 Data connection already open; Transfer starting.DEBUG [FTPClient] 15 Jan 2009 08:51:14.128 : Closing source streamDEBUG [FTPClient] 15 Jan 2009 08:51:14.128 : Transferred 18950 bytes to remote hostDEBUG [FTPControlSocket] 15 Jan 2009 08:51:14.269 : 226 Transfer complete.DEBUG [FTPControlSocket] 15 Jan 2009 08:51:18.300 : ---> SIZE FileUploadedDEBUG [FTPControlSocket] 15 Jan 2009 08:51:18.300 : 213 18950DEBUG [FTPControlSocket] 15 Jan 2009 08:51:26.488 : ---> SIZE FileUploadedDEBUG [FTPControlSocket] 15 Jan 2009 08:51:26.488 : 213 18950DEBUG [FTPControlSocket] 15 Jan 2009 08:51:26.503 : ---> RNFR FileUploadedDEBUG [FTPControlSocket] 15 Jan 2009 08:51:26.847 : 350 File exists, ready for destination nameDEBUG [FTPControlSocket] 15 Jan 2009 08:51:26.847 : ---> RNTO FFI_18079_0812_2_M42849.MDB.rar.msg@3DEBUG [FTPControlSocket] 15 Jan 2009 08:51:26.878 : 250 RNTO command successful.DEBUG [FTPConnection] 15 Jan 2009 08:51:29.144 : Combining absolute path 'D:\Projects\VB6\MessageTransfer\MessageTransfer.NET\bin' with relative path '\\IDASPROC\DFS\HU\MESSAGES\FFI\FFI_18188_0812_1_M42847.MDB.RAR'DEBUG [FTPControlSocket] 15 Jan 2009 08:51:29.144 : ---> PASVDEBUG [FTPControlSocket] 15 Jan 2009 08:51:29.144 : 227 Entering Passive Mode (195,22,136,52,5,31).DEBUG [FTPControlSocket] 15 Jan 2009 08:51:29.144 : Server supplied address=195.22.136.52DEBUG [FTPControlSocket] 15 Jan 2009 08:51:29.144 : Server supplied port=1311DEBUG [FTPControlSocket] 15 Jan 2009 08:51:29.144 : Substituting server supplied IP (195.22.136.52) with remote host IP (195.22.136.52)DEBUG [FTPControlSocket] 15 Jan 2009 08:51:29.144 : NewPassiveDataSocket(195.22.136.52,1311)DEBUG [FTPControlSocket] 15 Jan 2009 08:51:29.144 : ---> STOR FileUploadedDEBUG [FTPControlSocket] 15 Jan 2009 08:51:29.410 : 125 Data connection already open; Transfer starting.DEBUG [FTPClient] 15 Jan 2009 08:51:29.425 : Closing source streamDEBUG [FTPClient] 15 Jan 2009 08:51:29.425 : Transferred 25530 bytes to remote hostDEBUG [FTPControlSocket] 15 Jan 2009 08:51:29.660 : 226 Transfer complete.DEBUG [FTPControlSocket] 15 Jan 2009 08:51:31.972 : ---> SIZE FileUploadedDEBUG [FTPControlSocket] 15 Jan 2009 08:51:31.972 : 213 18950DEBUG [FTPControlSocket] 15 Jan 2009 08:51:31.988 : ---> SIZE FileUploadedDEBUG [FTPControlSocket] 15 Jan 2009 08:51:31.988 : 213 18950DEBUG [FTPControlSocket] 15 Jan 2009 08:54:35.082 : ---> SIZE FileUploadedDEBUG [FTPControlSocket] 15 Jan 2009 08:54:35.144 : 213 25530
I'm using edtFTPnet/Free 1.3.0
Thanks,
Marco