Forum > Networking and Web Programming
lNet FTP remote file size
(1/1)
cybersmyth:
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:
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.
Navigation
[0] Message Index