Board index » delphi » Parsing TIdFTP.List(...)

Parsing TIdFTP.List(...)

Has any one written a reliable routine to parse the results of doing a
.List(...) with Indy's FTP client?

If not, can someone tell me and/or give examples of the possible formats a
list may come back in?

Thanks -

--
- Jimmy                            -
------------------------------------
- URL: http://www.used-disks.com/  -
- ICQ: 94565958                    -
- AOL: UsedDisks                   -
------------------------------------
- No direct email unless requested -
:

 

Re:Parsing TIdFTP.List(...)


ji...@NILSPAMused-disks.com (Jimmy \(Used-Disks\)) wrote in <3a68e6ac$1_1
@dnews>:

Quote
>Has any one written a reliable routine to parse the results of doing a
>.List(...) with Indy's FTP client?

Yes, See the FTP demo.

--
Chad Z. Hower (Kudzu) - Church Hill, TN - Team Indy
      "Programming is an art form that fights back"
Forget the Y2K problem, Lets fix the W2K problem.
http://www.pbe.com/Kudzu/ - Free Delphi/CBuilder components and articles

Re:Parsing TIdFTP.List(...)


Quote
> Yes, See the FTP demo.

I was hoping for more than just the file name and weather or not it's a
directory.

Can someone point out the differences between the way Windows & UNIX give
their listings? Or maybe tell me the name of a UNIX FTP server I can connect
to and figure it out?

--
- Jimmy                            -
------------------------------------
- URL: http://www.used-disks.com/  -
- ICQ: 94565958                    -
- AOL: UsedDisks                   -
------------------------------------
- No direct email unless requested -
:

Re:Parsing TIdFTP.List(...)


ftp.borland.com is UNIX ftp server.

Doychin
doic...@5group.com

Quote
"Jimmy (Used-Disks)" <ji...@NILSPAMused-disks.com> wrote in message

news:3a69a4b2$1_1@dnews...
Quote
> > Yes, See the FTP demo.

> I was hoping for more than just the file name and weather or not it's a
> directory.

> Can someone point out the differences between the way Windows & UNIX give
> their listings? Or maybe tell me the name of a UNIX FTP server I can
connect
> to and figure it out?

> --
> - Jimmy                            -
> ------------------------------------
> - URL: http://www.used-disks.com/  -
> - ICQ: 94565958                    -
> - AOL: UsedDisks                   -
> ------------------------------------
> - No direct email unless requested -
> :

Re:Parsing TIdFTP.List(...)


Quote
> ftp.borland.com is UNIX ftp server.

When I try to connect with Indy I get "Syntax error in paramaters" ... it
works fine with IE's built in FTP Client.

Is there anything special I need to know?

--
- Jimmy                            -
------------------------------------
- URL: http://www.used-disks.com/  -
- ICQ: 94565958                    -
- AOL: UsedDisks                   -
------------------------------------
- No direct email unless requested -
:

Re:Parsing TIdFTP.List(...)


Where you get this error?
I can't reproduce it here.

Try with ftp.microsoft.com It returnts UNIX like file listing.

Doychin
doic...@5group.com

Quote
"Jimmy (Used-Disks)" <ji...@NILSPAMused-disks.com> wrote in message

news:3a6a4e22$1_1@dnews...
Quote
> > ftp.borland.com is UNIX ftp server.

> When I try to connect with Indy I get "Syntax error in paramaters" ... it
> works fine with IE's built in FTP Client.

> Is there anything special I need to know?

> --
> - Jimmy                            -
> ------------------------------------
> - URL: http://www.used-disks.com/  -
> - ICQ: 94565958                    -
> - AOL: UsedDisks                   -
> ------------------------------------
> - No direct email unless requested -
> :

Re:Parsing TIdFTP.List(...)


Quote
> Where you get this error?

It was actually an incorrect password. I was using a blank password and I
should have been using an email address. Though, you would think I would get
a different error message...

Quote
> Try with ftp.microsoft.com It returnts UNIX like file listing.

It does? Wow... that's quite a surprise. Thanks, I'll try it.

--
- Jimmy                            -
------------------------------------
- URL: http://www.used-disks.com/  -
- ICQ: 94565958                    -
- AOL: UsedDisks                   -
------------------------------------
- No direct email unless requested -
:

Other Threads