Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Get file size

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

Re: Get file size

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

Re: Get file size

Why do you want to do that?
Ron2

Get file size

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