getRecentPublication function

Returns the most recent files for those that do not need stacking