Test for file existance in wodFtpDLX - WeOnlyDo Discussion board

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

by kaczmar2, Tuesday, March 01, 2005, 17:34 (7006 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


Complete thread: