Topic "ResumeSupport in WinSCP .NET /COM library"

Author Message
joperx

Guest


Is the "ResumeSupport" flag exposed in the WinSCP.dll .NET/COM library? How can I set up my .NET code to not break any file into .fileparts and send as one file?

Thanks
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Not yet. Request is tracked here:
https://winscp.net/tracker/show_bug.cgi?id=834
_________________
Martin Prikryl
joperx

Guest


Thank you!

prikryl wrote:
Not yet. Request is tracked here:
https://winscp.net/tracker/show_bug.cgi?id=834
sigilToNoise
[View user's profile]

Joined: 2012-03-20
Posts: 2
What do you recommend as a workaround for this issue? Using C#, I'm getting the following error message from OperationResultBase.Check():

Quote:

WinSCP.SessionRemoteException: Transfer was successfully finished, but temporary transfer file 'testfile.zip.filepart' could not be renamed to target file name 'testfile.zip'. If the problem persists, you may want to turn off transfer resume support.


It seems that this happens with any zip file that I try to send. If it makes a difference, these are zip files that were creating using the DotNetZip library.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
sigilToNoise wrote:
It seems that this happens with any zip file that I try to send. If it makes a difference, these are zip files that were creating using the DotNetZip library.

It could be some antivirus (or similar) checking the uploaded file, locking it during the test.
_________________
Martin Prikryl
sigilToNoise
[View user's profile]

Joined: 2012-03-20
Posts: 2
prikryl wrote:
sigilToNoise wrote:
It seems that this happens with any zip file that I try to send. If it makes a difference, these are zip files that were creating using the DotNetZip library.

It could be some antivirus (or similar) checking the uploaded file, locking it during the test.


I don't think so. When I manually upload the file (using the WinSCP GUI), it works fine. It's only when I try to upload with .NET that it fails.

But on the chance that it is a temporary lock, is there a way that I can check to see if the file is locked before attempting the rename?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
sigilToNoise wrote:
I don't think so. When I manually upload the file (using the WinSCP GUI), it works fine. It's only when I try to upload with .NET that it fails.

You probably have have resume support disabled in the GUI, haven't you?
_________________
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