Hi, after using Enumerate objects from set of FTP activities… we get result in IEnumerable a kind of list carrying the details around each file/directory within that FTP location.
Each item within this IEnumerable there are file properties stored… like Created, FullName, Name, Type etc…each item is of type FtpObjectInfo
I wanted to convert this whole list into a datatable, with the file properties as columns and values as rows… Can someone please help on how to do this?
Ultimately I wanted to filter this big list of FtpObjectInfo based on a patter on Name, I was thinking I will do this filtering when the list gets converted into a datatable
If someone can help me filter this IEnumerable.Name with Regex without even converting into a datatable that is even better solution from the performance
Once I find the list of files that match my pattern (on its name) I will move those files form FTP to local computer. This is my usecase
As mentioned in the tutorial the first statement with Regex.Match was not returning a boolean to the lambda. The later used one with RegEx.IsMatch had an boolean outcome. So it was working.