ListDir into raw text string ? - WeOnlyDo Discussion board

ListDir into raw text string ? (General questions)

by dtw01, Wednesday, September 27, 2006, 18:16 (6631 days ago)

Is there a way to get back the entire directory listing as a string from the ListDir method?

I would like to parse the directory structure myself.

I know that I can build a string from the ListItems event, but my directory has 26,000 files in it and I don't want to build the string from the ListItems event firing 26,000 times.

I have tried using ListDir(RemotePath, ToStream) method, but the ToStream value is set to nothing after the ListDir method is done. Is the ToStream param only useful for sending the directory list to the screen for a console app, as in your ListDirToScreen demo app or can it somehow be transferred to a string that can be used for manual parsing.

Ultimately I would simply like to get back the directory listing as a raw text string from the server and to some how tell WeOnlyDo component to NOT parse the directory listing.

Is this possible?

If not, could there possibly be a new method created to do this?

Maybe something like: ListDirRaw(RemotePath, ToString, NoParse)


Complete thread: