Re: Mask working when downloading files but not when listing
The
https://winscp.net/eng/docs/library_session_enumerateremotefiles#mask
Session.EnumerateRemoteFiles
supports simple Windows wildcards only:
https://winscp.net/eng/docs/library_session_enumerateremotefiles#mask