PDA

Click to See Complete Forum and Search --> : Reading FTP Info, Please Help


Mar 17th, 2000, 02:37 AM
Im in the middle of making an ftp client using the winsock control. I can make it login to the ftp, and retrieve the root directory, but the info comes back as this:
drwxrwxrwx 1 user group 0 Feb 21 21:27 Appz
drwxrwxrwx 1 user group 0 Feb 13 12:35 Gamez
drwxrwxrwx 1 user group 0 Feb 27 14:43 ISO's
drwxrwxrwx 1 user group 0 Mar 12 19:09 Messaes For Me
drwxrwxrwx 1 user group 0 Feb 21 21:33 MP3's
drwxrwxrwx 1 user group 0 Mar 13 16:42 Music Videos
drwxrwxrwx 1 user group 0 Mar 12 18:30 New Stuff
drwxrwxrwx 1 user group 0 Mar 13 16:52 Pictures
drwxrwxrwx 1 user group 0 Mar 12 19:09 Requests

Is there a way to format that to load the directorys into a listview, i though about doing something with the # of spaces inbetween the words but there differnt on different ftp server. This one was from a site running servu, but on microsoft ftp, the spaces are longer. Any ideas?

* i just looked at my post and noticed that vb-world cut out a lot of the spaces inbetween the directory info, just thought i'd mention that

Edited by oO CYX oO on 03-17-2000 at 03:38 PM

John
Mar 17th, 2000, 06:46 PM
Try putting and tags around the directories listing. It will preserve all the spaces.

privoli
Mar 19th, 2000, 11:38 AM
Unix/Linux based FTPd. Try sending 'ls' without the quotes instead of 'ls -lR' or 'ls -l' and that should give you better output.

Cheers

Oleg Gdalevich
Mar 19th, 2000, 08:04 PM
Hi,

I have the same problem in my FTP sample app. You can find it at http://www.vbip.com/winsock/winsock_ftp_client_01.asp

In my app, I remove multiple whitespaces in each listing line with code shown below:

For i = 15 To 2 Step -1
vFile = Replace(vFile, Space(i), " ")
Next