before folks here started publishing a lot of content as pages, they produced PDFs, word documents, etc and as a result, we have a boatload of archived files on the web that probably no one ever looks atmost are in folders, sorted by date...so the structure is like:
[root]file1.pdffile2.docfile3.xlsx20130101 - file4.pdf - file5.doc - file6.xlsx20130102 - file7.pdf - file8.doc - file9.xlsx
20130102 - link to file7.pdf - link to file8.doc - link to file9.xlsx20130101 - link to file4.pdf - link to file5.doc - link to file6.xlsxunsorted files in the root - link to file1.pdf - link to file2.doc - link to file3.xlsx
$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir), RecursiveIteratorIterator::SELF_FIRST);
5/16/2013 1:35:44 PM
some combo of krsort and uasort
5/16/2013 6:30:20 PM
How does recursiveiteratoriterator store directories?Seems like it would be easier to have an array of array lists with the array lists storing the files in the directory, and the array being keyed by directory. Then you just sort the array, then spit out the array lists sorted.
5/16/2013 8:25:55 PM
just ended up using glob...wasn't as involved as i thought it would be (though still more than i was hoping)
5/17/2013 10:51:24 AM