Re: Copy files from one remote directory to another remote directory on the same server
If you need to make a copy of whole folder, you will need to call
Though if you use SFTP/SCP protocol, note that the method internally calls shell command
https://winscp.net/eng/docs/library_session_executecommand
Session.DuplicateFile
for each file individually.
Though if you use SFTP/SCP protocol, note that the method internally calls shell command
cp
. So you might want to call cp -r ...
using Session.ExecuteCommand
instead.
https://winscp.net/eng/docs/library_session_executecommand