Topic "ResumeSupport.State does not seem to work."

Author Message
icedteax
[View user's profile]

Joined: 2015-04-21
Posts: 2
Hi, I'm uploading files on a sftp server using:
TransferOptions.ResumeSupport.State = TransferResumeSupportState.Off

After the upload, I try to compare the file size of the local / remote files to be sure everythings are right but when I list the files they have a stamp like this :
MyFile_186804232.txt instead of MyFile.txt. So I'm unable to match them correctly.

If I wait couple of seconds and I list the files again, they are named correctly.

I don't know what I'm doing wrong. Do you have an Idea?
The version is : 5.7.2

Thanks
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
It's not WinSCP that's adding the numbers to the file name. It has to be the server or some server-side process.
icedteax
[View user's profile]

Joined: 2015-04-21
Posts: 2
So is it the way I do it that is wrong?
When I want to upload files I do this:

Connect

Set TransferOptions
For each file
transferResult = PutFiles(....)
transferResult.Check
Next

-- I do not disconnect yet

-- In another function i do this

ListFiles
-- I verify I the listed files and sizes are the same as the local files I wanted to upload
-- If one or some files are not transferred correctly I create an Exception.

-- After I Disconnect Into my Upload function

My Question is: Am I ok to only use the transferResult.Check to be sure my upload is fine?

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
icedteax wrote:
So is it the way I do it that is wrong?

No. You are doing it right.

Quote:
My Question is: Am I ok to only use the transferResult.Check to be sure my upload is fine?

Correct.
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