lib/rocket_job/dirmon_entry.rb in rocketjob-3.3.1 vs lib/rocket_job/dirmon_entry.rb in rocketjob-3.3.2

- old
+ new

@@ -232,10 +232,10 @@ # Skip archive directories next if file_name.include?(self.class.default_archive_directory) # Security check? - if (whitelist_paths.size > 0) && whitelist_paths.none? {|whitepath| file_name.to_s.start_with?(whitepath)} + if (whitelist_paths.size > 0) && whitelist_paths.none? { |whitepath| file_name.to_s.start_with?(whitepath) } logger.error "Skipping file: #{file_name} since it is not in any of the whitelisted paths: #{whitelist_paths.join(', ')}" next end # File must be writable so it can be removed after processing