Re: Removing file after movement deletes folder
@pavanmanideep: I do not see any "badly formatted packet or protocol incompatibility" error in the log. The log does not even come from WinSCP .NET assembly.
Session.SessionLogPath
. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.*
as mentioned, getting
badly formatted packet or protocol incompatibility
*
) to the source path, to select only contents. I've updated by answer above.
Session.SessionLogPath
. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.
session.GetFiles("/UP/", "\\hostname\SftpDownload\", True, transferOptions)
session.GetFiles("/remotepath/folder", "C:\\localpath\\", true)
.
folder
from /remotepath
to C:\localpath\
.
session.GetFiles("/remotepath/folder/*", "C:\\localpath\\folder\\", true)
(note the slash).
/remotepath/folder/
to C:\localpath\folder\