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, (7335 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, (7335 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
, (7334 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, (7334 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, (7334 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*

Your professionalism is reflected into your email, your product and your web site. I am confident that these will make the difference.

The people at WeOnlyDo are amazing! ... I always get a super fast response from customer service, and the products are great too. Thanks WeOnlyDo

Thank you for the great customer service ... I am really impressed with the wodSSH ActiveX control.

I would highly recommend this to anyone who needs a good quality SFTP solution.

Fantastic product by the way, it has helped us tremendously on a daily basis. Keep up the good work.

...with the SFTP interface you produced, everything was so simple to understand, we were able to start coding almost immediately!

Brilliant, even works on the mobile phone...

Just thought you'd like to know that my gateway app with your SMTP Server component held the line against a DDOS attack today...

The SFTP ocx is one of the finest pieces of programming I have seen. It worked out of the box...

...with WOD's excellent support I was able to bypass Winsock and focus on the task at hand...

