This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/whimsy.git
commit 4a8c667c81091a3ef7441c7b422eb788a55ee297 Author: Sebb <[email protected]> AuthorDate: Wed May 4 00:24:06 2022 +0100 Look for last completed meeting dir --- lib/whimsy/asf/meeting-util.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/whimsy/asf/meeting-util.rb b/lib/whimsy/asf/meeting-util.rb index 38953b70..c8bc1f00 100644 --- a/lib/whimsy/asf/meeting-util.rb +++ b/lib/whimsy/asf/meeting-util.rb @@ -80,6 +80,11 @@ module ASF end end + # Get the latest completed Meetings dir (i.e. has raw-irc-log) + # TODO: is that the most appropriate file to check? + def self.get_latest_completed(mtg_root, sentinel='raw-irc-log') + return Dir[File.join(mtg_root, '2*')].select {|d| File.exist? File.join(d, sentinel) }.max + end # Get the latest available Meetings dir def self.get_latest(mtg_root) return Dir[File.join(mtg_root, '2*')].max
