OrderBy FTP List


I’m trying to enumerate an FTP directory and then I need to OrderBy date, from newest to oldest.
Can anyone help me?

Thanks in advance,

Try this
Directory.GetFiles(“your path”).OrderByDescending(function(x) new FileInfo(x).LastWriteTime)


Is your FTP directory is mapped as a network drive?


It’s not a normal directory. I have to sort an IEnumerable

No I don’t think so

so we assume that the Enumerate Object Activity was used

Assign Activity:
myOrderedList | List(Of FtpObjectInfo) =
YourEnumerableVar.OrderByDescending(Function (x) x.Created).toList

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.