Topic "Get file size"

Author Message
Ron2

Guest


Hi,

it seems that knowbody has an idea how to check the file size of the transmitted file. I described my problem in the following topic:
<invalid hyperlink removed by admin>

If i could only get the file size of the files to transfer, that would help me too. Then i could transfer the file and after that i could check if the file size is as i expected. But i can't find a possibility to get the file size of the remote files. There is no information in the log-file and there is no command to do this. I need to do this in command-line, but it seems there is no way.

Has anybody an idea which can help me?
Ron
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Why do you want to do that?
_________________
Martin Prikryl
Ron2

Guest


Hi,

we are using a professional program/tool to transport files between different servers automatically. There are many files which are not too important, but some files are really important, for example for bank transfers. That program provides the possibility to check the file size of the remote file and of the transferred file. It adds a little bit more security, we can be sure that the files have the same size.

My task is to change the transmission from FTP to SFTP and i use WinSCP to do this. It works fine, but for this very important files it seems that the old way over FTP has a better way to check if the transmitted file is exactly the same. It it is not we get an error and we can check what happened.

I looked in the manual and they wrote the following:
"In distributed systems and especially in remote operations that have a loose coupling of systems, it is difficult to determine whether the file transfer succeeds, fails, or the processing goes on. Our FTP concept provides means to establish proven acknowledgement mechanisms for file transfers in this domain."

Perhaps the SFTP-protocol has some advantages in compare to the FTP-protocol for this specific task. I don't know enough about that. If i could check the file size i would do it, it can't be wrong.

Ron
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Ron2 wrote:
Perhaps the SFTP-protocol has some advantages in compare to the FTP-protocol for this specific task. I don't know enough about that. If i could check the file size i would do it, it can't be wrong.

Definitely. With FTP it may happen that the transfer is interrupted without you knowing that. With SFTP it either succeeds completely or fails. So you should not bother with the file size.
_________________
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