Check if remote file exists before upload (wodSFTP / wodSFTP.NET / wodSFTPdll)
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
Complete thread:
- Check if remote file exists before upload - Limey, 2014-09-10, 17:13
- Check if remote file exists before upload - wodSupport, 2014-09-10, 17:16
- Check if remote file exists before upload - Limey, 2014-09-10, 18:02
- Check if remote file exists before upload - wodSupport, 2014-09-10, 18:04
- Check if remote file exists before upload - Limey, 2014-09-10, 19:59
- Check if remote file exists before upload - Limey, 2014-09-10, 20:01
- Check if remote file exists before upload - wodSupport, 2014-09-10, 20:08
- Check if remote file exists before upload - Limey, 2014-09-10, 20:14
- Check if remote file exists before upload - wodSupport, 2014-09-10, 20:15
- Check if remote file exists before upload - Limey, 2014-09-10, 20:14
- Check if remote file exists before upload - wodSupport, 2014-09-10, 20:08
- Check if remote file exists before upload - Limey, 2014-09-10, 20:01
- Check if remote file exists before upload - Limey, 2014-09-10, 19:59
- Check if remote file exists before upload - wodSupport, 2014-09-10, 18:04
- Check if remote file exists before upload - Limey, 2014-09-10, 18:02
- Check if remote file exists before upload - wodSupport, 2014-09-10, 17:16