Getting the size of files from an FTP server

I'm making an FTP client and I want to know if there is a way that you can check to see how big a file is. The reasoning for this is because I want to make a percentage bar showing the transfer progress.

Date Entered: 02/02/1998    Last Updated: 06/09/2004

There is a FileSize property of the component that will tell you the size of any file on the server. To use this, just set the RemoteFile property to the file who's size you are interested in, and then read the value of the FileSize property.

For older versions of IPWorks, you'll need to set the RemoteFile property to the file who's size you are interested in, and then call the ListDirectoryLong method, and get the size from the resulting DirList event.


We appreciate your feedback.  If you have any questions, comments, or suggestions about this entry please contact our support team at kb@nsoftware.com.