Re: How can I check for an empty remote folder using powershell
Use
https://winscp.net/eng/docs/library_session_enumerateremotefiles
Session.EnumerateRemoteFiles
. It automatically excludes the ".." meta folder.
https://winscp.net/eng/docs/library_session_enumerateremotefiles