When you transfer a dir of script/s & data-files to rPi from your PC, via USBstik, there's a problem, since the rPi has no RealTimeClock.
So the important abilty to 'evaluate' files by their recentcy is lost. It's a universal truth that you'll want to get the most-recent cup-of-coffee and not the 17th most-recent that you put-down. That's why stacks are used.
What algorithm do you use to solve this problem?
==TIA.