Check if remote file exists before upload - WeOnlyDo Discussion board

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

by wodSupport, Wednesday, September 10, 2014, 18:04 (3725 days ago) @ Limey

Hi.

You cannot use GetAttributes inside PutFiles, that's what I mentioned that is a problem. Rather, I would use ListDir to list directory contents, and then parse and put existing files in some local list.

Then in PutFiles check if there is a file in my local list, and that way determine if it exists on remote side or not.

There is no automated way to do this.

Kreso


Complete thread: