Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Feb : Re: TidFTP no file size returned
| Subject: | Re: TidFTP no file size returned |
| Posted by: | "Michael Fritz" (spam_athome@yahoo.de) |
| Date: | Thu, 15 Feb 2007 08:24:28 |
"Remy Lebeau (TeamB)" wrote in message
<news:45d35341$1@newsgroups.borland.com>:
> Then the server does not support the SIZE command, or is sending back
> a malformed reply to it.
Can't believe this since, as mentioned in my initial posting, Internet
Explorer shows it up correctly. Using ICS as socket components and a basic
FTP client demo, it works, too, so it's definitely an issue with Indy.
> You should not be using Size() to differentiate between a file and a
> directory. That is a very poor design choice. You need to use the
> List() method with the DirectoryListing collection instead. That will
> give you detailed information about items, including whether they are
> actually files or directories.
Funny, you wrote it's a poor design choice and I've downloaded this FTP
client demo from the Indy project, from the experts themselves! I guess
that the demo was donated to then :-)
> That has no effect on Size(). That only effects the DirectoryListing
> collection.
Thanks for clarification!
--
cu,
Michael