Re: Empty folders on FTP sometimes created as 0 byte files - how to find and delete them in folders
It's not possible with simple WinSCP scripting.
But it's easy with WinSCP .NET assembly and PowerShell (or other language of your preference).
Use
https://winscp.net/eng/docs/library_session_enumerateremotefiles
But it's easy with WinSCP .NET assembly and PowerShell (or other language of your preference).
Use
Session.EnumerateRemoteFiles
to list all files and filter those you are interested in.
https://winscp.net/eng/docs/library_session_enumerateremotefiles