I’m trying to develop a small solution to get the first file inserted into a particular folder…
So I can process them from the oldest to the newest.
This is what im using:
String.Join("", Directory.GetFiles(PastaDownloadDocumentos,"*.pdf",SearchOption.AllDirectories).OrderByDescending(Function(d) New FileInfo(d).CreationTime).Take(1))
Those are my pdf files:
In this case, I want to process in the first place the file from 12:58, but with my expression, I’m getting the file from 13:08.
Any ideas on what is wrong?
Any help is well appreciated, thank you