How to extract filenames only from ListDir() metho (General questions)
ListDir() method lists all the contents of directory with some extra info. I want only the filenames, or how can I extract name from that list. Do I have to parse it.
by Mudassir, (7560 days ago)
ListDir() method lists all the contents of directory with some extra info. I want only the filenames, or how can I extract name from that list. Do I have to parse it.
by Jasmine, (7560 days ago) @ Mudassir
Yes, you have to parse it.
But, why don't you use ListAttributes instead?
Which component exactly do you use, ActiveX or NET version?
by Mudassir
, (7560 days ago) @ Jasmine
Can somene plz give me the code of parsing or just tell me how I can distinguish between directories and files in list below.
drwxr-xr-x 5 root root 4096 Dec 31 2004 .
drwxr-xr-x 25 root root 4096 Nov 14 15:59 ..
drwxr-xr-x 2 root root 4096 Dec 31 2004 CustomFCLine
drwxr-xr-x 2 root root 4096 Dec 31 2004 CustomMSLine
-rw-r--r-- 1 root root 33672 Dec 31 2004 fc2column.swf
-rw-r--r-- 1 root root 9228 Dec 31 2004 fc2line.swf
-rw-r--r-- 1 root root 10338 Dec 31 2004 fc2msline.swf
-rw-r--r-- 1 root root 10474 Dec 31 2004 FC2Pipe.swf
-rw-r--r-- 1 root root 10474 Dec 31 2004 FC2Pipe1.swf
drwxr-xr-x 2 root root 4096 Dec 31 2004 MSLine
help me plz pzl plz.
by Jasmine, (7560 days ago) @ Mudassir
Mudassir,
please take a look at wodSFTP's 3. Tree sample, and it's implementation of Sftp1_ListItems event - you can find parsing there.
by Mudassir, (7559 days ago) @ Jasmine
thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks * 10 * 100 * 1000 * 10000 * 100000 * 1000000 * 10000000 * inf*

Not only wodSFTPdll is excellent, the service you have provided is outstanding and second to none!

...not only that you provide these components at very reasonable cost, your responsiveness to emailed technical questions is simply outstanding...

...with a minimum of effort as the DLL interface was written with such simplicity...

I can only hope I will have the pleasure to work with other products by "We Only Do" in the future.

This has been, by far, the best experience I have ever had dealing with a support entity in my long career in the technical arena

Many thanks for your excellent support service. I can see why you have a long list of excellent testimonials on your website.

Brilliant, even works on the mobile phone...

...wodFtpDlx was exactly what I needed, it worked, and it was priced right...

Thank you very much for the rapid responses. I was a little nervous about dealing with a company that is on a different continent from me. You have proven my concerns to be unfounded.

Thank you so much for your hard work and commitment in producing well thought-out solutions. WeOnlyDo is very committed to customer satisfaction!

