Test for file existance in wodFtpDLX (wodSFTP / wodSFTP.NET / wodSFTPdll)
Is there a way to test for file existance in wodFtpDLX? I don't want to use ListNames() and ListItem() methods, since it would take awhile to retreive and parse through the whole directory listing. I noticed that the regular SFTP component has a GetAttributes() method, but I do not see one for wodFtpDLX.
Is there a quick way to check for file exists before I attempt to download a file? If I perform a GetFile() on a fle that does not exist, it writes a 0-byte file to my destination, which I do not want.
Christian
Re: Test for file existance in wodFtpDLX
Kaczmar,
are you sure it creates zero-sized file locally? I would rather fix this bug if it exists, since finding answer to your question isn't that easy. I think that in FTP protocol there's no convinient way for that. You may try to use RawSend( SIZE filename & VbCrLf) but that's not supported on all servers.
Re: Test for file existance in wodFtpDLX
We have tweaked wodFtpDLX a bit so it doesn't create this file if remote doesn't exist. Please download it again (or request update if you're licensed user).
Hope that helps.
Re: Test for file existance in wodFtpDLX
Excellent! I have downloaded the new version of the component and verified that it does not create a 0-byte file.
Thank you very much for your prompt assistance.
We have tweaked wodFtpDLX a bit so it doesn't create this file if remote doesn't exist. Please download it again (or request update if you're licensed user).
Hope that helps.