overwrite remote files using session.putfiles

Advertisement

sferrand
Joined:
Posts:
3

overwrite remote files using session.putfiles

Hi,

There must be a setting for this, but I can't find it.

I'm getting:
Cannot overwrite remote file '/remotepath/myfilename'
Press 'Delete' to delete the file and create new one instead of overwriting it.

It looks like it's possible with scripting "confirm off", but how using the .NET component?

FWIW, I'm using a wildcard for the localPath

Thanks,
SteveF

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: overwrite remote files using session.putfiles

This has nothing to do with "confirm off".
What is the reason WinSCP cannot overwrite the file?
Complete session log would be helpful.
_________________
Martin Prikryl

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

After checking the log, I can confirm that your server rejects request to overwrite the file with "Permission denied".
_________________
Martin Prikryl

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

sferrand wrote:

Any idea why?
No idea. You should check server's log or contact your server administrator.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum