Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: No method "ListDirectory"

Your example does not show, how do you initialize the $session variable.
anon324123

No method "ListDirectory"

This does not work per https://winscp.net/eng/docs/library_session_listdirectory:
$directory = $session.ListDirectory("/home/martin/public_html")

Method invocation failed because [System.Boolean] does not contain a method named ListDirectory.

I'm using WinSCP v.5.13.4 Build 8731