Recent

Author Topic: lNet FTP remote file size  (Read 5632 times)

cybersmyth

  • Jr. Member
  • **
  • Posts: 51
lNet FTP remote file size
« on: February 13, 2011, 10:38:05 pm »
Is there a simple way to get the file size of a remote file using lNet for FTP?

In the visual example included with the package it looks like they fill out with gridview with the FTP list and then gets the file size from the gridview. My app doesn't use a grid view or anything, I already knows what file it wants, so I just need a quick way to get the size for a progress bar.

Thanks!
-Joe

Almindor

  • Sr. Member
  • ****
  • Posts: 412
    • http://www.astarot.tk
Re: lNet FTP remote file size
« Reply #1 on: February 14, 2011, 11:33:02 am »
You can use LIST or NLST command (if NLST is available, use FEAT with the featurelist to check).

NLST gives a specific format for file listing which makes it easy to read file info. LIST is non-deterministic.

 

TinyPortal © 2005-2018