Martin, I will rephrase my request. Does EnumerateRemoteFiles of WinSCP has an option to Include/Exclude remote directories?
Re: EnumerateRemoteFiles with remote path mask
Sorry, but this is not a code writing service. This is not even a WinSCP question. It's mere question about filtering a string list. Please try yourself and ask questions about problems you face. Though your question would be more suitable for sites like https://stackoverflow.com/. But still, you need to try yourself even before asking there.
Please share a code snippet to session.EnumerateRemoteFiles with below filtering options of remote path
1. I should be able to include multiple directories such as ChildFolderA, ChildFolderC exluding ChildFolderB. I would prefer include over exclude because my include list will be small.
2. Along with above filter, I should have an additional filter by date range i.e. when I mention 2021-03-19, it should exclude till 2021-03-18 and include directories 2021-03-19, 2021-03-20 so on.
Expected result set for above filters