Get size of remote file using ftpLib (VxWorks 6.5)

  • Follow


Is this possible?  The API suggests that I can send arbitrary
commands, but I am having difficulty obtaining the response (e.g., of
"LS" or "SIZE" or "DIR", etc.).
0
Reply michaelrbodnar (11) 2/13/2012 6:40:58 PM

On Feb 13, 1:40=A0pm, MBodnar <michaelrbod...@gmail.com> wrote:
> Is this possible? =A0The API suggests that I can send arbitrary
> commands, but I am having difficulty obtaining the response (e.g., of
> "LS" or "SIZE" or "DIR", etc.).

It is possible; it's just that the WindRiver-provided FTP server does
not support the "SIZE" command.

After you set up a server that does, it's a simple matter of sending a
"SIZE %s" command and parsing the reply string (FTP code, then size).
0
Reply michaelrbodnar (11) 2/22/2012 12:18:45 PM


1 Replies
44 Views

(page loaded in 0.184 seconds)

Similiar Articles:




7/11/2012 12:18:07 PM


Reply: