.NET DLL - ignores RawCommand when PUT/GET files
I am trying to set IgnorePermErrors and PreserveTime RAW settings on WinSCP.
The first question is this:
Am I using right parameter names? They are not documented and I fished them out of Windows Registry settings for WinSCP.
Assuming they are correct, this happens when logging OutputDataReceived event:
winscp> option batch on
batch on
winscp> option confirm off
confirm off
winscp> open -timeout=120 "sftp://1234:1234@123.123.123.123:22" -rawsettings IgnorePermErrors="1" PreserveTime="0"
Searching for host...
However, during actual file transfers, the WinSCP gets the following command:
winscp> put -nopermissions -preservetime -transfer="binary" -- "C:\download\Template.xml" "/Template.xml"
It is worth noting that "-nopermissions" switch is used in all instances regardless if I set it in RawSettings or not. Anyway, it seems like it is setting "preservetime" which I think is the switch responsible for attempting to set time stamp on a file after upload which is where I get errors from our server.
Can you elaborate and set me straight... or put in bug fix request?
Thank you, Julius.
The first question is this:
Am I using right parameter names? They are not documented and I fished them out of Windows Registry settings for WinSCP.
Assuming they are correct, this happens when logging OutputDataReceived event:
winscp> option batch on
batch on
winscp> option confirm off
confirm off
winscp> open -timeout=120 "sftp://1234:1234@123.123.123.123:22" -rawsettings IgnorePermErrors="1" PreserveTime="0"
Searching for host...
However, during actual file transfers, the WinSCP gets the following command:
winscp> put -nopermissions -preservetime -transfer="binary" -- "C:\download\Template.xml" "/Template.xml"
It is worth noting that "-nopermissions" switch is used in all instances regardless if I set it in RawSettings or not. Anyway, it seems like it is setting "preservetime" which I think is the switch responsible for attempting to set time stamp on a file after upload which is where I get errors from our server.
Can you elaborate and set me straight... or put in bug fix request?
Thank you, Julius.