Test for file existance in wodFtpDLX (wodSFTP / wodSFTP.NET / wodSFTPdll)

by kaczmar2 @, (7367 days ago)

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

locked

Re: Test for file existance in wodFtpDLX

by Jasmine, (7367 days ago) @ kaczmar2

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.

locked

Re: Test for file existance in wodFtpDLX

by Jasmine, (7367 days ago) @ Jasmine

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.

locked

Re: Test for file existance in wodFtpDLX

by kaczmar2 @, (7366 days ago) @ Jasmine

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.

locked