Check if remote file exists before upload (wodSFTP / wodSFTP.NET / wodSFTPdll)
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:
- 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