lib/rocket_job/jobs/dirmon_job.rb in rocketjob-5.1.1 vs lib/rocket_job/jobs/dirmon_job.rb in rocketjob-5.2.0.beta1

- old
+ new

@@ -1,6 +1,6 @@ -require 'fileutils' +require "fileutils" module RocketJob module Jobs # Dirmon monitors folders for files matching the criteria specified in DirmonEntry # # * The first time Dirmon runs it gathers the names of files in the monitored @@ -77,13 +77,13 @@ entry.later(iopath) next end # BSON Keys cannot contain periods - key = iopath.to_s.tr('.', '_') - previous_size = previous_file_names[key] + key = iopath.to_s.tr(".", "_") + previous_size = previous_file_names[key] # Check every few minutes for a file size change before trying to process the file. - size = check_file(entry, iopath, previous_size) + size = check_file(entry, iopath, previous_size) new_file_names[key] = size if size end end self.previous_file_names = new_file_names end