Re: How to prevent traversing subfolders
I suppose you've meant "but with GetFiles" (not ListDirectory).
Anyway, see FAQ:
https://winscp.net/eng/docs/faq_script_non_recursive
Anyway, see FAQ:
https://winscp.net/eng/docs/faq_script_non_recursive