I have a folder that contains certain files I want to import. In my case those are .png files. As all the files I want to import contain the phrase "accum" in their filenames, I can use
SetDirectory[directory]; (*directory is string of the directory that contains the files*)
importString = "./*" <> "accum" <> "*";
files = Import[importString];
to obtain a list consisting of all the images I wanted to import. Of course this list is sorted by filename.
What can I do to tell Import that the files should not be sorted by "name" but by other options like "date added" (which is what I want)?
Import["!dir 2>&1", "Text"]on Windows, and extract parts accordingly. – Chris Degnen Apr 18 '14 at 20:24ReadList["!dir /od /a:-d 2>&1", String]-- see e.g. (2401) – Mr.Wizard Jul 16 '14 at 10:07Last@ReadList["!dir /od /a-d /b", String]– Chris Degnen Jul 16 '14 at 11:24