Check if remote file exists before upload (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Jasmine, (3887 days ago) @ Limey

Hi.

I suggest you use GetAttributes method

http://www.weonlydo.com/SFTP/Help/wodSFTP-GetAttributes.html

for each file before the upload. If it returns an error - then file doesn't exist.

But you cannot use it in LoopItem event, since LoopItem fires while some other method is processing. You must wait for Done to complete in order to execute GetAttributes, so you should do it before GetFiles/PutFiles.

Kreso

locked

Complete thread: