Results 1 to 4 of 4

Thread: Reading FTP Info, Please Help

  1. #1
    Guest
    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

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    593

    Dropping spaces

    Try putting
    Code:
     and
    tags around the directories listing. It will preserve all the spaces.

  3. #3
    Lively Member
    Join Date
    Nov 1999
    Location
    Melbourne, Victoria, Australia
    Posts
    126
    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
    Regards,

    Paul Rivoli
    ---------------------
    [email protected]
    http://members.dingoblue.net.au/~privoli

  4. #4
    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:

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width