I have a folder/directory that contains some sub directories.
Only those sub folders contain files.
I have to get the full path of last created files in each sub folder.
Only the last created file in each sub folder is needed.
How can I do this? How can I use linq to files stem for this
Something like this would work:
One thing to be mindful of is the permissions you need to traverse some protected directories, this shouldn’t be a problem for most cases though.