Topic "overwrite remote files using session.putfiles"

Author Message
sferrand
[View user's profile]

Joined: 2013-04-30
Posts: 3
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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
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
sferrand
[View user's profile]

Joined: 2013-04-30
Posts: 3
Hi,

see attached. It overwrites a couple of files then fails with "permission denied" even though it's got the same permissions to the files it just successfully overwrote.

Thanks!
winscp upload error.txt (11.81 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
After checking the log, I can confirm that your server rejects request to overwrite the file with "Permission denied".
_________________
Martin Prikryl
sferrand
[View user's profile]

Joined: 2013-04-30
Posts: 3
Hi,

Any idea why? It overwrote two files prior to the one that failed in the same directory

Thanks,
SteveF[/quote]
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
sferrand wrote:
Any idea why?

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

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License