Re: recursive download a complete remote directory (General questions)
Use ListAttributes. It fires AttributesData with info that tells you if item is a dir or a file.
You can reuse code snippet from this thread, just add one more collection for folders.