committing fix for bug with --read-locally

0 views
Skip to first unread message

Arthur P

unread,
Dec 22, 2010, 11:51:44 AM12/22/10
to activewareh...@googlegroups.com
This code:
      def last_local_file_trigger
        Dir.glob(File.join(local_directory, '*.trig')).last
      end

does NOT get the last written file.  It is basically nondeterministic and can choose pretty much any *.trig file in the directory. 

The fix is to sort by time before doing .last; i'm committing this to my branch if you need this fix.

Reply all
Reply to author
Forward
0 new messages