Checking File Size of file on an FTP site

Hi Guys,
I am working on a script that uploads a file to an ftp site using Applescript and Curl. The thing I have searched and cannot find is:

How can you check a file size of a file on the FTP site? I want to make sure the file is fully uploaded before I start the next task.

Thank you so much,

Hi,

usually AppleScript waits until the shell script task is completed

Hi Stefan,
I will give that a shot. Thank you.