Re: ListDir into raw text string ? - WeOnlyDo Discussion board

Re: ListDir into raw text string ? (General questions)

by wodDrazen, Wednesday, September 27, 2006, 20:15 (6631 days ago) @ dtw01

Hi Dave,


When you call ListDir Method for some directory you can call DirItem Object from wodFtpDLX.NET and make collection of files. After you make collection of files you can parse data from that collection.

Here is example:
-------------------------------------
dlx1 = New WeOnlyDo.Client.FtpDLX
coll = New Collection
Dim j As Integer

dlx1.Hostname = your_server_name
dlx1.Login = your_login
dlx1.Password = your_password
dlx1.Blocking = 1
dlx1.Connect()

dlx1.ListDir( /home/test )

For j = 0 To dlx1.DirItems.Count - 1
Debug.Print(dlx1.DirItems.Item(j).Name)
coll.Add(dlx1.DirItems.Item(j).Name)
Next j
-------------------------------------


More help for DirItem Object you can find here:
http://www.weonlydo.com/FtpDLX.NET/Help/WeOnlyDo.Client.FTP~WeOnlyDo.Client.DirItem_fields.html

Hope this helps.


Regards,
Drazen


Complete thread: