Re: Deleting all empty folders using WinSCP
There's no way to delete empty folders with WinSCP scripting.
But once you are using C# anyway, you should switch to WinSCP .NET assembly:
https://winscp.net/eng/docs/library
https://winscp.net/eng/docs/library_ssis
With the assembly, it's way easier to iterate the folders, checking which are empty and deleting them.
But once you are using C# anyway, you should switch to WinSCP .NET assembly:
https://winscp.net/eng/docs/library
https://winscp.net/eng/docs/library_ssis
With the assembly, it's way easier to iterate the folders, checking which are empty and deleting them.